Its been a while since I've worked with Access and I'm having some problems on the simpliest thing.
I have a main form with a tab control. In the tab is a subform. I have a table connected to the subform that has an autonumber and several fields. I already have a few records in the table. I'm trying to do DoCmd.GoToRecord , , acNewRec to add a new record but it always creates the autonumber starting with 1 and then of course I get an error stating the number is duplicated. I tried eliminating the subform and putting the fields directly on the tab control but the same error happens.
Any help is appreciated. I'm sure its something small.
I have a main form with a tab control. In the tab is a subform. I have a table connected to the subform that has an autonumber and several fields. I already have a few records in the table. I'm trying to do DoCmd.GoToRecord , , acNewRec to add a new record but it always creates the autonumber starting with 1 and then of course I get an error stating the number is duplicated. I tried eliminating the subform and putting the fields directly on the tab control but the same error happens.
Any help is appreciated. I'm sure its something small.