/ Published in: Visual Basic
This method creates a query with a given name and given SQL.
Note: Requires the deleteQuery(String) method.
Note: Requires the deleteQuery(String) method.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
Private Sub createQuery(name As String, sql As String) Call deleteQuery(name) Dim queryDef As DAO.queryDef Set queryDef = CurrentDb.CreateQueryDef(name, sql) End Sub