Hi all, i knocked up a little bit of code that should delete all queires in my db :
but this only deletes half of my queries, it seems to skip every other query. Eg:
qry1
qry2
qry3
qry4
the code will delete qry1 and qry3 but not qry2 or qry4.
This holds true no matter how many queries there are, it wil only delete half of them.
TIA
Tim if at first you don't succeed, get a 10lb lump hammer
Code:
Dim qd As QueryDef
For Each qd In CurrentDd.QueryDefs
CurrentDd.QueryDefs.Delete qd.Name
Next qd
CurrentDd.QueryDefs.Refresh
Set qd = Nothing
but this only deletes half of my queries, it seems to skip every other query. Eg:
qry1
qry2
qry3
qry4
the code will delete qry1 and qry3 but not qry2 or qry4.
This holds true no matter how many queries there are, it wil only delete half of them.
TIA
Tim if at first you don't succeed, get a 10lb lump hammer