P
Pam
Hi,
I have the code listed below to open form to job number that is typed in
text box - works great, but how do I tweek the code to make it also open to
a new blank record when user need to start a new job. The job number is an
autonumber so they won't know the next job number available.
Private Sub txtJobNumber_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[JobNumber]=" & Str(Nz(Me![TxtJobNumber], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Thanks in advance for any help.
Pam
I have the code listed below to open form to job number that is typed in
text box - works great, but how do I tweek the code to make it also open to
a new blank record when user need to start a new job. The job number is an
autonumber so they won't know the next job number available.
Private Sub txtJobNumber_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[JobNumber]=" & Str(Nz(Me![TxtJobNumber], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
Thanks in advance for any help.
Pam