tags:

views:

48

answers:

1

Access seems to hang when it executes a specific querydef. If I pause the code before it executes, manaually run the querydef and then start the code after it calls for the querydef it runs fine. There is something with Access calling the querydef that just kills it's performance.

The code itself is and has been fine for years. This seems to be a recent development...

Here's the code:

Set qdf = db.QueryDefs("qryPostTeachers")
qdf.Parameters("currentPostID") = lPostID
qdf.Execute dbSeeChanges + dbFailOnError
A: 

JetShowPlan may help.

-- http://msdn.microsoft.com/en-us/library/aa188211%28office.10%29.aspx

Remou