I have created a database with one table and multiple forms. My ID field (Primary key and autonumber) appears on every form.
The value chosen on the main form determines which form is opened next. This is done with a conditional macro that is set to OpenForm.
The secondary form that opens receives the ID# from the main form. My control source seems to be set correctly. The ID# appears correctly in the field on the form.
The problem occurs when the forms are closed and the data is sent to the table. The table creates a new ID# for each form that I had opened. So, the data from the main form A goes into a record with ID# 1, the data from the second form B goes into a new record with ID# 2 (even though the ID# on form shows up on the form as 1).
Even if I dont close the forms, but just refresh them, the problem occurs.
Any advice on where I might have gone wrong? Why is my form ID data changing to the next autonumber when entered into the table?
Thanks
The value chosen on the main form determines which form is opened next. This is done with a conditional macro that is set to OpenForm.
The secondary form that opens receives the ID# from the main form. My control source seems to be set correctly. The ID# appears correctly in the field on the form.
The problem occurs when the forms are closed and the data is sent to the table. The table creates a new ID# for each form that I had opened. So, the data from the main form A goes into a record with ID# 1, the data from the second form B goes into a new record with ID# 2 (even though the ID# on form shows up on the form as 1).
Even if I dont close the forms, but just refresh them, the problem occurs.
Any advice on where I might have gone wrong? Why is my form ID data changing to the next autonumber when entered into the table?
Thanks