Question from an Access Newbie here:
I have an entry field for one of my forms in the database. It is a specialty number, which I would like Access to fill in when a new record is to be entered. The format is as follows:
Number = MMYSSS where:
MM = two digit month (10 = October)
Y = equal to year (1 = 2001 or 2011 or so on based on the actual year)
SSS = three digit sequence beginning at 001 (this resets with each
new year)
I want Access to, based on the current date, and the sequence number it is on, to create this number, but also allow it to be edited if the user needs to. I have no idea how to build this event. Furthermore, or if no one can answer the first part, should I set this event to "On Got Focus" or on "On Enter"? I have no idea what to do to even get started, and I only know simple Access database design. Thank you for your help,
Dustin O'Farrell
I have an entry field for one of my forms in the database. It is a specialty number, which I would like Access to fill in when a new record is to be entered. The format is as follows:
Number = MMYSSS where:
MM = two digit month (10 = October)
Y = equal to year (1 = 2001 or 2011 or so on based on the actual year)
SSS = three digit sequence beginning at 001 (this resets with each
new year)
I want Access to, based on the current date, and the sequence number it is on, to create this number, but also allow it to be edited if the user needs to. I have no idea how to build this event. Furthermore, or if no one can answer the first part, should I set this event to "On Got Focus" or on "On Enter"? I have no idea what to do to even get started, and I only know simple Access database design. Thank you for your help,
Dustin O'Farrell