J
Johnny
I have a help desk form that needs the very next number to show in the help
desk control source text field. I am trying to pull this number from a table
so the help desk form can support more than one user simultaneously entering
data. I started with a table that starts with 20080001 for the first help
desk number and so on. Here is my code:
Private Sub Form_BeforeInsert(Cancel As Integer)
If Me.NewRecord Then
Me.HelpdeskTicketNo = Nz(DMax("NextNum", "tblNextNum"), 0) + 1
End If
End Sub
The problem I have is how to clear the table so that if one user starts an
entry at 20080002, a second user now starts with the next available number
20080003, so on. The table is not clearing the number once a user takes on
20080002. Any suggestions on how to do this so each entry is a unique
number and multiple users can be doing data entry at the same time?
desk control source text field. I am trying to pull this number from a table
so the help desk form can support more than one user simultaneously entering
data. I started with a table that starts with 20080001 for the first help
desk number and so on. Here is my code:
Private Sub Form_BeforeInsert(Cancel As Integer)
If Me.NewRecord Then
Me.HelpdeskTicketNo = Nz(DMax("NextNum", "tblNextNum"), 0) + 1
End If
End Sub
The problem I have is how to clear the table so that if one user starts an
entry at 20080002, a second user now starts with the next available number
20080003, so on. The table is not clearing the number once a user takes on
20080002. Any suggestions on how to do this so each entry is a unique
number and multiple users can be doing data entry at the same time?