R
Raymond
Hi again,
I have the form.test2 in form.test1
This is the after event of the textbox.
Private Sub txtSearchReg_AfterUpdate()
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[visitorlog.License_Tag_Number] = " &
Str(Nz(Me![txtSearchReg], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
Me.License_Tag_Number.SetFocus
Me.txtSearchReg = ""
End Sub
The listbox in form2 does not find the record I entered above. The control
source in the list is License Tag Number, row source type table/query, row
source vistitlog table. I dont get any errors after I type in the tag number
but it does not locate the desired record. I'm thinking its in my sources of
list27, but I really dont know.
Any help would be appreciated. Thanks
I have the form.test2 in form.test1
This is the after event of the textbox.
Private Sub txtSearchReg_AfterUpdate()
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[visitorlog.License_Tag_Number] = " &
Str(Nz(Me![txtSearchReg], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
Me.License_Tag_Number.SetFocus
Me.txtSearchReg = ""
End Sub
The listbox in form2 does not find the record I entered above. The control
source in the list is License Tag Number, row source type table/query, row
source vistitlog table. I dont get any errors after I type in the tag number
but it does not locate the desired record. I'm thinking its in my sources of
list27, but I really dont know.
Any help would be appreciated. Thanks