J
J. Lund
I am new to access programming so this may be a newbie error. I have a form
that I would like the user to select a record from the database through a
combo box. However, every time I execute the findfirst statement I get the
following message:
Run-time error '3077'; Syntax error (missing operator) in expression
Here is the code I am using.
Private Sub cboTicket_Num_AfterUpdate()
Dim rst As DAO.Recordset
Set rst = Me.RecordsetClone
Dim strCriteria As String
strCriteria = "Ticket Num = " & Me.[Ticket Num]
rst.FindFirst strCriteria
If Not rst.NoMatch Then
' You know the search succeeded.
End If
End Sub
Any insight to this problem would be greatly appreciated.
that I would like the user to select a record from the database through a
combo box. However, every time I execute the findfirst statement I get the
following message:
Run-time error '3077'; Syntax error (missing operator) in expression
Here is the code I am using.
Private Sub cboTicket_Num_AfterUpdate()
Dim rst As DAO.Recordset
Set rst = Me.RecordsetClone
Dim strCriteria As String
strCriteria = "Ticket Num = " & Me.[Ticket Num]
rst.FindFirst strCriteria
If Not rst.NoMatch Then
' You know the search succeeded.
End If
End Sub
Any insight to this problem would be greatly appreciated.