Whoops should not the For lngLoop ... line include step -1?
Dim dbCurr As DAO.Database
Dim lngLoop As Long
Set dbCurr = CurrentDb()
For lngLoop = (dbCurr.QueryDefs.Count - 1) To 0 Step -1
dbCurr.QueryDefs.Delete qdfCurr.Name
Next lngLoop
'====================================================
John Spencer
Access MVP 2002-2005, 2007
Center for Health Program Development and Management
University of Maryland Baltimore County
'====================================================
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.