/ Published in: Visual Basic
This method checks whether a query with the given name exists.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
Private Function queryExists(name As String) As Boolean Dim queryDef As DAO.queryDef For Each queryDef In CurrentDb.QueryDefs If queryDef.name = name Then queryExists = True Exit Function End If Next queryExists = False End Function