M
mon
The code below is to show the last job number in the new
record job number field. I had a lot of trouble with this
and got a lot of help from you all. Kept getting a
runtime erreor. Then suddenly it worked. Now amazingly I
am getting the same runtime error. After looking back at
my original messages I note that it occurred on the 1st of
October - it is now the first of November. Help, please.
Thanks
Mon
Also the number shows when I tab into one of the fields in
that new record. Can I make it show immediately the new
record appears?
Dim LastEntry As Date
Dim LastJob As Long
LastEntry = DMax("[DateEntered]", "tblInstructions")
LastJob = DLookup
("[JobNumber]", "tblInstructions", "[DateEntered]=#" &
LastEntry & "#")
Me.JobNumber = LastJob
End Sub
record job number field. I had a lot of trouble with this
and got a lot of help from you all. Kept getting a
runtime erreor. Then suddenly it worked. Now amazingly I
am getting the same runtime error. After looking back at
my original messages I note that it occurred on the 1st of
October - it is now the first of November. Help, please.
Thanks
Mon
Also the number shows when I tab into one of the fields in
that new record. Can I make it show immediately the new
record appears?
Dim LastEntry As Date
Dim LastJob As Long
LastEntry = DMax("[DateEntered]", "tblInstructions")
LastJob = DLookup
("[JobNumber]", "tblInstructions", "[DateEntered]=#" &
LastEntry & "#")
Me.JobNumber = LastJob
End Sub