J
Johnny
I've been researching this for days, but obviously not getting an
understanding. I have a form where the Autonumber (I know we should not use,
but I am told to do so) is using this code on a help desk form based on one
table Help Desk Tickets; here is the code I am currently using:
Private Sub Form_BeforeInsert(Cancel As Integer)
Me!HelpdeskTicketNo = Nz(DMax("[HelpDeskTicketNo]", "[Help Desk Tickets]"))
+ 1
End Sub
Where HelpdeskTicketNo is the name and control source from table Help Desk
Tickets. The above works like a charm.
However, superiors tell me they want the setup of the of the automated
ticket number to come from another single table, such as NextNum (table name)
and NextNum (field name) +1 and to show up after update or before insert of
the Helpdesk Form so more than one user can share the form at the same time
without causing one or the other to void out their entries due to duplicate
ticket number fields.
Any ideas on this is greatly appreciated. From a novice.
understanding. I have a form where the Autonumber (I know we should not use,
but I am told to do so) is using this code on a help desk form based on one
table Help Desk Tickets; here is the code I am currently using:
Private Sub Form_BeforeInsert(Cancel As Integer)
Me!HelpdeskTicketNo = Nz(DMax("[HelpDeskTicketNo]", "[Help Desk Tickets]"))
+ 1
End Sub
Where HelpdeskTicketNo is the name and control source from table Help Desk
Tickets. The above works like a charm.
However, superiors tell me they want the setup of the of the automated
ticket number to come from another single table, such as NextNum (table name)
and NextNum (field name) +1 and to show up after update or before insert of
the Helpdesk Form so more than one user can share the form at the same time
without causing one or the other to void out their entries due to duplicate
ticket number fields.
Any ideas on this is greatly appreciated. From a novice.