C
Confused87
I created a search command button like this but it is not working , any ideas?
New command button, exit wizard, went to properties, change caption, went to
Event , clicked the ... On Click, selected Code Builder, deleted what was
there, copy/pasted the following, adjusted the [ ] so it had the right table
column.
Dim RetVal As String
RetVal = InputBox("Enter Surname")
If RetVal <> "" Then
Me.Filter = "[Surname] = '" & RetVal & "'"
Me.FilterOn = True
End If
Private Sub Command338_Click()
End Sub
New command button, exit wizard, went to properties, change caption, went to
Event , clicked the ... On Click, selected Code Builder, deleted what was
there, copy/pasted the following, adjusted the [ ] so it had the right table
column.
Dim RetVal As String
RetVal = InputBox("Enter Surname")
If RetVal <> "" Then
Me.Filter = "[Surname] = '" & RetVal & "'"
Me.FilterOn = True
End If
Private Sub Command338_Click()
End Sub