G
Guest
I need an example of how to count the number of Queries that I have in a
Database.
I am using the code below; Where MSysObjects.Type = 5 (Represents QueryDefs).
Dim db As DAO.Database
Dim rst As DAO.Recordset
Dim CmdExec As String
Set db = CurrentDb
Set rst = db.OpenRecordset("Select MSysObjects.Name From MSysObjects
Where (((MSysObjects.Type)=5) And (InStr([NAme],""~"")=False);")
The syntax is incorrect, but I cannot figure out what the machine wants.
Also should I be useing QueryDefs in my code some place?
Help Will be Appreciated!
Len
Database.
I am using the code below; Where MSysObjects.Type = 5 (Represents QueryDefs).
Dim db As DAO.Database
Dim rst As DAO.Recordset
Dim CmdExec As String
Set db = CurrentDb
Set rst = db.OpenRecordset("Select MSysObjects.Name From MSysObjects
Where (((MSysObjects.Type)=5) And (InStr([NAme],""~"")=False);")
The syntax is incorrect, but I cannot figure out what the machine wants.
Also should I be useing QueryDefs in my code some place?
Help Will be Appreciated!
Len