I have a form that has a command button which opens another form. I want the second form to open on a new record to add. I have the following code on the command button on the first form:
DoCmd.OpenForm "frm_LocAdd", acNormal, , ,acFormAdd
Then on the second form, I have Data Entry in form properties set to Yes.
The problem is that when I add and save a series of records, the record navigator advances with each new record I add. However if I exit this form and go back in, the record navigator resets to 1 every time and I can't navigate back to any previous records.
If I open the table in datasheet view the records have been saved and are indeed there.
What gives? Any ideas would be greatly appreciated.
DoCmd.OpenForm "frm_LocAdd", acNormal, , ,acFormAdd
Then on the second form, I have Data Entry in form properties set to Yes.
The problem is that when I add and save a series of records, the record navigator advances with each new record I add. However if I exit this form and go back in, the record navigator resets to 1 every time and I can't navigate back to any previous records.
If I open the table in datasheet view the records have been saved and are indeed there.
What gives? Any ideas would be greatly appreciated.