B
Bloodsoul
Guest
Sorry I am new to this game, never done any programming before.
I have followed these instructions thats creates a query based on a combo Box in a from.
http://www.fontstuff.com/access/acctut08.htm
Everything works great. see code below.
Option Compare Database
Private Sub cmdcancel_Click()
DoCmd.Close acForm, "frmQuery"
End Sub
Private Sub cmdOK_Click()
DoCmd.OpenQuery "qryQuery", acViewNormal, acReadOnly
DoCmd.Close acForm, "frmQuery"
DoCmd.Close acQuery, "qryQuery"
End Sub
My Question is how can I use the results of the query "qryQuery" in a form.
Althought the Query has the Info I require, I can't access the query as a dialog box opens.
I presume it is possible to do this but I do not know the code required.
Any help would be much appreciated.
I have followed these instructions thats creates a query based on a combo Box in a from.
http://www.fontstuff.com/access/acctut08.htm
Everything works great. see code below.
Option Compare Database
Private Sub cmdcancel_Click()
DoCmd.Close acForm, "frmQuery"
End Sub
Private Sub cmdOK_Click()
DoCmd.OpenQuery "qryQuery", acViewNormal, acReadOnly
DoCmd.Close acForm, "frmQuery"
DoCmd.Close acQuery, "qryQuery"
End Sub
My Question is how can I use the results of the query "qryQuery" in a form.
Althought the Query has the Info I require, I can't access the query as a dialog box opens.
I presume it is possible to do this but I do not know the code required.
Any help would be much appreciated.