IamCornholio
Programmer
I'm getting the evil error 3061. I typically find that I get this when I run SQL in code. My code is as follows...
[blue]
strSQL = "Select a.Supervisor "
strSQL = strSQL & "From tbl_PersonnelInformation a "
strSQL = strSQL & "Where Last_Name = " & Me.cboLastName & " "
strSQL = strSQL & "AND First_Name = " & Me.cboFirstName ' & "'"
Set db = CurrentDb()
Set rs = db.OpenRecordset(strSQL, dbOpenDynaset)
[/blue]
It keeps telling me its expecting two parameters. Would this be because I'm passing two combo box values to the query?
Any help is appreciated.
Thanks
Corn.
[blue]
strSQL = "Select a.Supervisor "
strSQL = strSQL & "From tbl_PersonnelInformation a "
strSQL = strSQL & "Where Last_Name = " & Me.cboLastName & " "
strSQL = strSQL & "AND First_Name = " & Me.cboFirstName ' & "'"
Set db = CurrentDb()
Set rs = db.OpenRecordset(strSQL, dbOpenDynaset)
[/blue]
It keeps telling me its expecting two parameters. Would this be because I'm passing two combo box values to the query?
Any help is appreciated.
Thanks
Corn.