Simple one this maybe! I use the following which works fine:
...but only if "qryTemp" exists of course. I can't guarantee it always will so i'm looking for kind of
does such exist?
Code:
CurrentDb.QueryDefs.Delete "qryTemp"
Code:
IfExists("qryTemp")