I have an old Access2 database that I want to convert to Access95 but I don't know what to use instead of db.DeleteQueryDef "queryname". Basically, I've got a filter form which creates a query using db.CreateQueryDef "queryname", sql), however if the query already exists (ie. the filter has been run already, I first need to delete the existing query then create the new one.

Has anyone any ideas? I've tried db.Delete queryname, and variations of the same, but I'm still having no success.

Thanks
Roisin