Hi I need to create a query in MSAccess 2003 through code (a.k.a. VB) -- how can I accomplish this?
+3
A:
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
Remou
2008-12-23 23:56:58
Ugh I've been trying things similar to this for the past 3 hours :( Thanks a bunch
Andrew G. Johnson
2008-12-24 00:01:55