S
Scott_Brasted via AccessMonster.com
Greetings,
I have the following code for a command button on an form to find records. I
get a "compile error: method or data member not found" when I save and
compile and when I click the command button.
clientLastName is the field name and txtCLN is the name of the txt box for
clientLastName on the form. Can anyone tell what simple mistake I am making
or what I am overlooking?
Thanks,
Scott
-----------------------------
Private Sub cmdFindLastName_Click()
Dim rs As Recordset
Set rs = Me.RecordsetClone
rs.FindFirst "[clientLastName] = '" & (Me!txtCLN) & "'"
If rs.NoMatch = False Then
Me.Bookmark = rs.Bookmark
Else
MsgBox "Entry not found"
End If
End Sub
__________________
I have the following code for a command button on an form to find records. I
get a "compile error: method or data member not found" when I save and
compile and when I click the command button.
clientLastName is the field name and txtCLN is the name of the txt box for
clientLastName on the form. Can anyone tell what simple mistake I am making
or what I am overlooking?
Thanks,
Scott
-----------------------------
Private Sub cmdFindLastName_Click()
Dim rs As Recordset
Set rs = Me.RecordsetClone
rs.FindFirst "[clientLastName] = '" & (Me!txtCLN) & "'"
If rs.NoMatch = False Then
Me.Bookmark = rs.Bookmark
Else
MsgBox "Entry not found"
End If
End Sub
__________________