G
Guest
I have an unbound field in the form header. I would like to use this field
to find a record. For somereason nothing happens when I type the number and
hit enter. I have the following code in AfterUpdate along with other code
that works. Is there a reason this will not find a record in the form
details section?
--------Start of code--------------------
Private Sub GoToTrackingNo_AfterUpdate()
DoCmd.FindRecord Me.GoToTrackingNo, acStart, False, acSearchAll, True, ,
True
If IsNull(Me.PickUpDate) Then
Me.PickUpDate = Now()
MsgBox "Package information for tracking # " & Me.TrackingNo & " has
been picked up.", vbYesNo
Else
MsgBox "This package has already been picked up!"
Me.GoToTrackingNo.SetFocus
End If
End Sub
----------end of code--------------
to find a record. For somereason nothing happens when I type the number and
hit enter. I have the following code in AfterUpdate along with other code
that works. Is there a reason this will not find a record in the form
details section?
--------Start of code--------------------
Private Sub GoToTrackingNo_AfterUpdate()
DoCmd.FindRecord Me.GoToTrackingNo, acStart, False, acSearchAll, True, ,
True
If IsNull(Me.PickUpDate) Then
Me.PickUpDate = Now()
MsgBox "Package information for tracking # " & Me.TrackingNo & " has
been picked up.", vbYesNo
Else
MsgBox "This package has already been picked up!"
Me.GoToTrackingNo.SetFocus
End If
End Sub
----------end of code--------------