J
Jack
Hi
I have the following code:
Dim db As DAO.Database
Dim qdf As DAO.QueryDef
Dim strsql As String
Set db = CurrentDb
Set qdf = db.CreateQueryDef("test", sql)
DoCmd.OpenQuery "test"
Before the Set qdf statement I need to check if the query test exists. If it
does I need to delete it.
How does one programmatically do this. Thanks.
I have the following code:
Dim db As DAO.Database
Dim qdf As DAO.QueryDef
Dim strsql As String
Set db = CurrentDb
Set qdf = db.CreateQueryDef("test", sql)
DoCmd.OpenQuery "test"
Before the Set qdf statement I need to check if the query test exists. If it
does I need to delete it.
How does one programmatically do this. Thanks.