R
Raymond
Form2 is has a list box to display the desired license plate found, the forms
are bound by license tag number. text box has the after event. character
field 10.
I have a record source for form2 called visitorlog, the table.
Private Sub txtSearchReg_AfterUpdate()
Dim rs As DAO.Recordset
Dim frmAny As Form
If Len(Me.txtSearchReg & "") <> 0 Then 'Optional line
Set frmAny = Me.TEST2.Form
Set rs = frmAny.RecordsetClone
rs.FindFirst "[License Tag Number] = " & Chr(34) & Me.txtSearchReg & Chr(34)
If rs.NoMatch = False Then Me.Bookmark = rs.Bookmark
this is the line that fails
frmAny.[License Tag Number].SetFocus
DoCmd.FindRecord Me!List27, acEntire
Me.txtSearchReg = Null
End Sub
error is;
object doesn support this property or method.
Thanks
Ray
are bound by license tag number. text box has the after event. character
field 10.
I have a record source for form2 called visitorlog, the table.
Private Sub txtSearchReg_AfterUpdate()
Dim rs As DAO.Recordset
Dim frmAny As Form
If Len(Me.txtSearchReg & "") <> 0 Then 'Optional line
Set frmAny = Me.TEST2.Form
Set rs = frmAny.RecordsetClone
rs.FindFirst "[License Tag Number] = " & Chr(34) & Me.txtSearchReg & Chr(34)
If rs.NoMatch = False Then Me.Bookmark = rs.Bookmark
this is the line that fails
frmAny.[License Tag Number].SetFocus
DoCmd.FindRecord Me!List27, acEntire
Me.txtSearchReg = Null
End Sub
error is;
object doesn support this property or method.
Thanks
Ray