Hey guys, this is my first post here but have been checking this site a lot for anything I need.
I hope someone can lead me to what I should do or just an idea to what can be done.
What I'm trying to do:
I have a Form that has a subform. My primary form has a field that autonumber and this field has a one to many relationship to a field in my subform.
The subform has another field that I want to AutoNumber or increment number BUT has to go back to 1 again once a new record in my Primary form is created.
I tried using autonumber on that field BUT if I do that, I will not be able to put that field back to 1automatically (I know you can revert the autonumber to start from 1 but you can only to do it manually) once a new record from the primary form is created.
I thought of a macro or a script that would be able to revert the autonumber but just dont know how I would be able to do that without an interaction from the user. Same as with the incrementing number(using DMAX).
I would really appreciate it if someone can lead me to the light... Thanks in advance.
I hope someone can lead me to what I should do or just an idea to what can be done.
What I'm trying to do:
I have a Form that has a subform. My primary form has a field that autonumber and this field has a one to many relationship to a field in my subform.
The subform has another field that I want to AutoNumber or increment number BUT has to go back to 1 again once a new record in my Primary form is created.
I tried using autonumber on that field BUT if I do that, I will not be able to put that field back to 1automatically (I know you can revert the autonumber to start from 1 but you can only to do it manually) once a new record from the primary form is created.
I thought of a macro or a script that would be able to revert the autonumber but just dont know how I would be able to do that without an interaction from the user. Same as with the incrementing number(using DMAX).
I would really appreciate it if someone can lead me to the light... Thanks in advance.
Comment