I am trying to enter data into a table using a form.
There are different fields in the form I have to generate an automatic unique id # for the records in VBA based on the Reportdate entered in an access form.
The user would enter reportdate and the formula should generate unique id as month of reportdate+Yearreportdate+001 and increment for all the events for that month.
So for 2 more events for same month, id would be (reportdate&Yearreportdate&002)
For the events occurring newmonth, I need to reset the id as reportdate&Yearreportdate&001
Then I enter the data using add record command button in the form after entering all the data and the automatically generated id field to save the data into the table.
I am able to generate the id based on Today’s date but not sure if it is possible to do that based on the the reportdate entered in the same form.
Any suggestion would be much appreciated.
Thanks,
Blyzzard