valley8338
Technical User
I am trying to write a macro (I do not have much experience with this at all) that will set my primary key. here is what I need it to do...
format of field will be yymm-##
I need it to populate the 2 digit year and month, then increment the last 2 numbers. I am trying to write the macro in the save and close button. This way when they are done with the form, the primary key will be assigned.
I have the field on the form at the end of the tab order (after the save and close button) and I have it hidden.
If anyone could help me with clear instructions on how I write this (which actions to use/what to put in the item field), it would be truly appreciated.
additional info if needed:
field is ProjectID located on the Project Info table. Thanks!!!
format of field will be yymm-##
I need it to populate the 2 digit year and month, then increment the last 2 numbers. I am trying to write the macro in the save and close button. This way when they are done with the form, the primary key will be assigned.
I have the field on the form at the end of the tab order (after the save and close button) and I have it hidden.
If anyone could help me with clear instructions on how I write this (which actions to use/what to put in the item field), it would be truly appreciated.
additional info if needed:
field is ProjectID located on the Project Info table. Thanks!!!