Using DAO you could interate through the querydefs collection and delete depending on the name
'Air code'
Dim Db as Database
Dim qdf as Querydef
Dim i as Integer
'
Set db = CurrentDb()
i = db.querydefs.count
for j = 0 to i
if Left(db.querydefs(i).Name,3) = "qry" Then
db.querydefs(i).delete
End if
Next i Regards
Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now -
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.