R
Robert Painter
Hi
I am trying to run a series of searches on my db and get runtime error
'3061' Too few parameters. expected 1 when i run the following code:
Private Sub cmdOkbutton_Click()
' //----------------------//
' //search for candidates//
' //search for candidates//
' ---------------------//
Dim rs As DAO.Recordset
Dim mySql As String
'/ Create your recordset...
mySql = "SELECT tblEmployees.EmployeeName AS mySearchrs"
mySql = mySql & " FROM tblEmployees LEFT JOIN tblEmployeeSkills ON
tblEmployees.EmployeeID = tblEmployeeSkills.EmployeeIDFK"
mySql = mySql & " WHERE tblEmployeeSkills!SkillIDFK =
Forms!frmcboSearch!cboSearch;"
Set rs = CurrentDb.OpenRecordset(mySql)
MsgBox "mySearchrs"
'/ Close shop..
rs.Close
Set rs = Nothing
End Sub
Can anyone point me in the right direction please ??
Robert
I am trying to run a series of searches on my db and get runtime error
'3061' Too few parameters. expected 1 when i run the following code:
Private Sub cmdOkbutton_Click()
' //----------------------//
' //search for candidates//
' //search for candidates//
' ---------------------//
Dim rs As DAO.Recordset
Dim mySql As String
'/ Create your recordset...
mySql = "SELECT tblEmployees.EmployeeName AS mySearchrs"
mySql = mySql & " FROM tblEmployees LEFT JOIN tblEmployeeSkills ON
tblEmployees.EmployeeID = tblEmployeeSkills.EmployeeIDFK"
mySql = mySql & " WHERE tblEmployeeSkills!SkillIDFK =
Forms!frmcboSearch!cboSearch;"
Set rs = CurrentDb.OpenRecordset(mySql)
MsgBox "mySearchrs"
'/ Close shop..
rs.Close
Set rs = Nothing
End Sub
Can anyone point me in the right direction please ??
Robert