Hi I need to create a query in MSAccess 2003 through code (a.k.a. VB) -- how can I accomplish this?
A vague answer for a vague question :)
strSQL="SELECT * FROM tblT WHERE ID =" & Forms!Form1!txtID Set qdf=CurrentDB.CreateQueryDef("NewQuery",strSQL) DoCmd.OpenQuery qdf.Name
1.4m articles
1.4m replys
5 comments
57.0k users