See if you get an error by referring to it, i.e. see if:
CurrentDb().QueryDefs("X")
produces error 3265.
If the next step is to create another similar query, you might want to
consider just changing the SQL property of the QueryDef instead.
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Reply to group, rather than allenbrowne at mvps dot org.
Steven Waugh said:
What coding is required to check if query "X" currently exists. If it does
exist, delete it and move on to the next step. If it doesn't, move on to the
next step?