J
jberiksen
I have a Access database used by more users, where each new record get a
number that 1 higer than the last number.
But my problem is that when a user make a record, and then another user make
a record within the first user have finished the work with his record, the
second user get a number that's 0. Then the second user have to wait to the
first is finish, within he can make his record.
Someone how can help me with som code that can solve thet problem
The code I use today to genetate the number is:
Private Sub Form_Current()
If Me.NewRecord Then
Me.Sagsnummer = DMax("Sagsnummer", "Sager") + 1
End If
End Sub
number that 1 higer than the last number.
But my problem is that when a user make a record, and then another user make
a record within the first user have finished the work with his record, the
second user get a number that's 0. Then the second user have to wait to the
first is finish, within he can make his record.
Someone how can help me with som code that can solve thet problem
The code I use today to genetate the number is:
Private Sub Form_Current()
If Me.NewRecord Then
Me.Sagsnummer = DMax("Sagsnummer", "Sager") + 1
End If
End Sub