G
Guest
Hello, Is anyone can help me on this.
I have one table, but I have two forms enter data into this table.
Form1 and Form2 using by different group, but data all save in one table.
How can I write a code to generate the number in both forms.
for example, when Group1 open Form1 to enter new data, Access generate the
new number=Last record number+1.
When Group2 open Form2 to enter new data, Access does the same.
But no duplicate. I set the number as a primary key.
Thank you.
I have one table, but I have two forms enter data into this table.
Form1 and Form2 using by different group, but data all save in one table.
How can I write a code to generate the number in both forms.
for example, when Group1 open Form1 to enter new data, Access generate the
new number=Last record number+1.
When Group2 open Form2 to enter new data, Access does the same.
But no duplicate. I set the number as a primary key.
Thank you.