help with autonumber

K

kari

i have a form which allows users to update the underlying table directly from
the form (using AddNew). For some reason, when users add a new item --the
AutoNumber reverts to "2", instead of assigning the next incremental number.
I have the autonumber set to assign incrementally (not randomly).
any thoughts?

thanks in advance

kari



Expand AllCollapse All


Manage Your Profile |Rules of Conduct
 
E

elwin

It sounds like you're using the 'newrecord' on a bound form to input
information, but then using recordset via code, rather than the form's
recordset, to actually write the record to your table. Under that scenario
the table would 'burn' an autonumber ID prior to your code executing. To
correct the problem, you would unbind your form (clear the form's
recordsource property). Just a guess. Good luck.
 
K

kari

thanks! kari

elwin said:
It sounds like you're using the 'newrecord' on a bound form to input
information, but then using recordset via code, rather than the form's
recordset, to actually write the record to your table. Under that scenario
the table would 'burn' an autonumber ID prior to your code executing. To
correct the problem, you would unbind your form (clear the form's
recordsource property). Just a guess. Good luck.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top