I have a form that users fill out for data entry, and I need the form to show the users an ID# for their reference. I have it set up now so that this number is generated on the forms "before insert" command, and then displays for them on the form. However, it is possible that if 2 users are working on the form at the same time, that it can duplicate this ID since the dmax command is looking at the last entry, and since the numbering system restarts every year, I must allow duplicates in that field. The number is generated by 2 fields (year, and ID) to generate the ID's as 2007-0001, 2007-0002, etc.
What would be the best way to resolve this?
I was thinking maybe, if there was a way to generate the ID after I have them submit the data on a seperate form that I could have pop up for them, but I am unsure how to do this. Is there a way to reference the records they just submitted somehow?
If more details are needed to help answer this, let me know. Thanks!
What would be the best way to resolve this?
I was thinking maybe, if there was a way to generate the ID after I have them submit the data on a seperate form that I could have pop up for them, but I am unsure how to do this. Is there a way to reference the records they just submitted somehow?
If more details are needed to help answer this, let me know. Thanks!