S
Sue R via AccessMonster.com
A database we use was working fine and now won't grab the next reference ID
in a sequence when we click the button on a new record, it keeps bringing up
the last one, not incrementing it and we get a duplicate value error message.
The database was designed by a previous employee of course and I know a bit
of Access but haven't used it in a while. This is the code I can find for
the Event Procedure (the only reference I can find to the number)
Private Sub cmdGrabID_Click()
Call modSetReferenceID(Form_frmHealthTrak, "2239-" & VBA.Format(Now, "yy")
& "-0", "2239-" & VBA.Format(Now, "yy") & "-")
End Sub
any help or point in the right direction would be appreciated.
Thanks
Sue
in a sequence when we click the button on a new record, it keeps bringing up
the last one, not incrementing it and we get a duplicate value error message.
The database was designed by a previous employee of course and I know a bit
of Access but haven't used it in a while. This is the code I can find for
the Event Procedure (the only reference I can find to the number)
Private Sub cmdGrabID_Click()
Call modSetReferenceID(Form_frmHealthTrak, "2239-" & VBA.Format(Now, "yy")
& "-0", "2239-" & VBA.Format(Now, "yy") & "-")
End Sub
any help or point in the right direction would be appreciated.
Thanks
Sue