This is probably something simple, however, it has me frustrated.
I am trying to use a DoCmd.FindRecord to find records based on whatever the user types into the input textbox (txtFindNew) using the following code.
Private Sub cmdFind_Click()
Dim strTitle as String
strTitle = txtFindNew
DoCmd.FindRecord strTitle, , False, , True, , True
End Sub
This returns nothing and appears to refresh the first record, however, if I hard code a piece of text (ET) it works fine.
Private Sub cmdFind_Click()
Dim strTitle as String
strTitle = "ET"
DoCmd.FindRecord strTitle, , False, , True, , True
End Sub
Any ideas would be greatly appreciated.
I am trying to use a DoCmd.FindRecord to find records based on whatever the user types into the input textbox (txtFindNew) using the following code.
Private Sub cmdFind_Click()
Dim strTitle as String
strTitle = txtFindNew
DoCmd.FindRecord strTitle, , False, , True, , True
End Sub
This returns nothing and appears to refresh the first record, however, if I hard code a piece of text (ET) it works fine.
Private Sub cmdFind_Click()
Dim strTitle as String
strTitle = "ET"
DoCmd.FindRecord strTitle, , False, , True, , True
End Sub
Any ideas would be greatly appreciated.