Thanks for your reply
I know how to get the the SQL statements and first I thought I had to move the whole def inside the code . So since this compromizes two SQL statements from joined Querys how do I get two joined querys work inside a recordset . Then I realized I shouldn't have to move the SQL statements inside but just call it the way you would call a table by putting it inside the CurrentDb.OpenRecordset Command. Currently I'm having this probelm.
Private Sub Command39_Click()
Dim rst As Recordset
Set rst = CurrentDb.OpenRecordset("qryProbeCardtouchdowncount", dbOpenDynaset)
MsgBox ("The Current Probe Card No is" & rst![Altera Probe Card No])
MsgBox ("The Current Record is " & rst!ID)
MsgBox ("The Last Probe Count is " & rst!CurrentProbeCount)
Me!LastProbeCount = rst!CurrentProbeCount
Error 3061 to few parameters when it hits the Set rst = Line
This is the first time I have tried to use querys in code so I'm a little unsure as to what is legal and what is not.