A coworker has created an Access DB to track documents. She wants the the numbering to be automatic (first document entered = 1, etc) but distinct by year, so that there is a #1 for 1990, a #1 for 1991, etc.
To do this, she has separated the numbering field (FileNo1990, FileNo1991, etc) into one table and has the year and all other information in a separate Document table. The linked field is called DocNo, which is an Autonumber in the Document table and a number field in the FileNo table.
My question is this:
How can I get the value from the Autonumber field in the Document table into the number field in the FileNo table? The two fields are linked in a 1-to-1 relationship, but that doesn't seem to do anything when a new record is created. Both fields are keys.
Thanks,
Rachel
To do this, she has separated the numbering field (FileNo1990, FileNo1991, etc) into one table and has the year and all other information in a separate Document table. The linked field is called DocNo, which is an Autonumber in the Document table and a number field in the FileNo table.
My question is this:
How can I get the value from the Autonumber field in the Document table into the number field in the FileNo table? The two fields are linked in a 1-to-1 relationship, but that doesn't seem to do anything when a new record is created. Both fields are keys.
Thanks,
Rachel