Hi All,
I have a command button that opens an InputBox. I would like users to enter a string and have the InputBox open a Form and go to the record that matches the users string most closely. I'm using the following code with no luck:
Where Programs is a Form and Program is a field in the form.
I have a command button that opens an InputBox. I would like users to enter a string and have the InputBox open a Form and go to the record that matches the users string most closely. I'm using the following code with no luck:
Code:
Private Sub Command3_Click() Dim Search As String, Message As String Search = "Find Program" Message = InputBox(Prompt, "Search") DoCmd.OpenForm "Programs", acNormal, , "Left(Program,10) = 'Message'" End Sub
Comment