N
nasuno via AccessMonster.com
Hello everyone.
When our product comes through our packaging department, the boxes
information gets entered into our database and labels printed out. The
boxes all have a reference number that depends on the date and time of day.
Therefore if two new records are created within the same minute ( I am not
allowed to narrow this down) then we have two boxes with the same box
number. That's bad.
I need this button to not be active until the time the current record
started has changed to the next minute.
Private Sub Command32_Click()
On Error GoTo Err_Command32_Click
DoCmd.GoToRecord , , acNewRec
Exit_Command32_Click:
Exit Sub
Err_Command32_Click:
MsgBox Err.Description
Resume Exit_Command32_Click
End Sub
Any ideas? Thanks.
When our product comes through our packaging department, the boxes
information gets entered into our database and labels printed out. The
boxes all have a reference number that depends on the date and time of day.
Therefore if two new records are created within the same minute ( I am not
allowed to narrow this down) then we have two boxes with the same box
number. That's bad.
I need this button to not be active until the time the current record
started has changed to the next minute.
Private Sub Command32_Click()
On Error GoTo Err_Command32_Click
DoCmd.GoToRecord , , acNewRec
Exit_Command32_Click:
Exit Sub
Err_Command32_Click:
MsgBox Err.Description
Resume Exit_Command32_Click
End Sub
Any ideas? Thanks.