F
Fyrebryte
I have a database that I am building (I am very new to VBA, so please be
patient) and I figured out how to create a number for each different type of
record based on the starting letter of the file. For example:
Medical = M
Insurance = I
The file number would read M07-0001 for the first medical record (I have the
last two digits of the year inserted also).
What I have though is this number is assigned when you tab out of the record
type combo box. If someone mistakenly hit the wrong type and then tabs, the
number gets assigned and the next record would be M07-0002.
I would like to create some code that actually deletes the number that is not
wanted so that the next record would be assigned properly.
I have a field that basically keeps count of the last number that was
assigned and every new record adds 1 to it.
I hope this make sense. If I can clarify in any way, please let me know.
Sincerly,
Fyre
patient) and I figured out how to create a number for each different type of
record based on the starting letter of the file. For example:
Medical = M
Insurance = I
The file number would read M07-0001 for the first medical record (I have the
last two digits of the year inserted also).
What I have though is this number is assigned when you tab out of the record
type combo box. If someone mistakenly hit the wrong type and then tabs, the
number gets assigned and the next record would be M07-0002.
I would like to create some code that actually deletes the number that is not
wanted so that the next record would be assigned properly.
I have a field that basically keeps count of the last number that was
assigned and every new record adds 1 to it.
I hope this make sense. If I can clarify in any way, please let me know.
Sincerly,
Fyre