I have a single form with 300 records. One the form I have a textbox called FISNumber where I record an identification number. I also have a textbox field called txtSearchFISNum and a button called btnSearchFISNum.
I want to be able to type in a number into txtSearchFISNum and press btnSearchFISNum, and then be taken to the exact record on my form where FISNumber = txtSearchFISNum.
This is what I am using:
Public Sub GoToSearchFISNumb(FISNumber As Long)
With Me.RecordsetClone
.FindFirst "[FISNumber] = '" & FISNumber & "'"
If Not .NoMatch Then Me.Bookmark = .Bookmark
End With
End Sub
Private Sub btnSearchFISNum_Click()
Me.GoToSearchFISNum Me.txtSearchFISNum
End Sub
However, the code doesnt work and only brings up the debug menu which highlights the second code.