Re: Wayne-In-Manchester
- From: John Spencer <spencer@xxxxxxxxxx>
- Date: Thu, 03 Sep 2009 20:51:00 -0400
Do you have a control on the subform named License Tag Number? Probably not. Maybe something close like License_Tag_Number?
And if the line fails, what error message do you get? The error message often points the problem.
'====================================================
John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County
'====================================================
Raymond wrote:
My reply failed let me try again..
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)
'rs.FindFirst "[License_Tag_Number] = " & Me.txtSearchReg
***The above live failed, so I input going with one of the text finds***
If rs.NoMatch = False Then Me.Bookmark = rs.Bookmark
***this line now fails, should there be quotes?
frmAny.[License Tag Number].SetFocus
Me.txtSearchReg = Null
Else
'If desired
'Insert alternate code if txtSearchReg is null
End If 'Optional line
End Sub
my txt box has no data just the after event
My list27 row source is the table visitorlog table in license order bound by column 4, which is licence tag, visible column, actually column 5 in the table. no control source
I really appreciate your help.
- Follow-Ups:
- Re: Wayne-In-Manchester
- From: Raymond
- Re: Wayne-In-Manchester
- From: Raymond
- Re: Wayne-In-Manchester
- References:
- Wayne-In-Manchester
- From: Raymond
- Re: Wayne-In-Manchester
- From: John Spencer
- Re: Wayne-In-Manchester
- From: Raymond
- Re: Wayne-In-Manchester
- From: John Spencer
- Re: Wayne-In-Manchester
- From: Raymond
- Wayne-In-Manchester
- Prev by Date: Re: How do you save a switchboard?
- Next by Date: Re: Date filter
- Previous by thread: Re: Wayne-In-Manchester
- Next by thread: Re: Wayne-In-Manchester
- Index(es):
Relevant Pages
|