N
Number46
I am new to Access. I have just built a basic database and I have
everything functioning (forms and reports) but this one thing. I am not very
good with writing code.
I would like to be able to incorporate a unique incident number that will be
automatically created and then stored in the table when the user opens the
form(without a user needing to click on a button or manually enter anything),
but I cannot seem to figure it out the best way to accomplish this It
doesn't matter if one of the records is eventually deleted, as the number
will be tied to the incident and will not be re-used. It just needs to be
unique and not a duplicate number.
I have been unsuccessful in my search for answers. I have attempted to
increment by 1 from a number field in the previous record using the Dmax
function, but was not having much success.
Could someone please point me in the right directon or offer any advice on
how to I accomplish my goal (if it is possible).
Thanks in advance!
everything functioning (forms and reports) but this one thing. I am not very
good with writing code.
I would like to be able to incorporate a unique incident number that will be
automatically created and then stored in the table when the user opens the
form(without a user needing to click on a button or manually enter anything),
but I cannot seem to figure it out the best way to accomplish this It
doesn't matter if one of the records is eventually deleted, as the number
will be tied to the incident and will not be re-used. It just needs to be
unique and not a duplicate number.
I have been unsuccessful in my search for answers. I have attempted to
increment by 1 from a number field in the previous record using the Dmax
function, but was not having much success.
Could someone please point me in the right directon or offer any advice on
how to I accomplish my goal (if it is possible).
Thanks in advance!