I'm running a bunch of saved append queries in a loop. The queries add records to linked SQL tables from local Access tables. Using DoEvents makes it take forever. Is there a better way? Is using StillExecuting the preferred way? Here's what I have so far. Thx
Code:
On Error GoTo ErrHandler
Dim db As DAO.Database
Dim qdf As DAO.QueryDef
Set db = DBEngine(0)(0)
Screen.MousePointer = 11
For Each qdf In db.QueryDefs
db.Execute qdf.Name, dbFailOnError
DoEvents
Next
ExitHere:
Screen.MousePointer = 0
Exit Sub
ErrHandler:
Debug.Print Err, Err.Description
Resume ExitHere