Form..new record..max value in tbl

G

Guest

I have a form that opens in the open new record view. On the form there is a
bound control, RecNum (from the Statistics tbl) which is the primary key. How
do I test the table to see if this is a new record and if so, update the
first record number to 1 then each time the form opens I want to get the
maximum value from the RecNum field in the table and add one to the maximum
number. I wanted to do this instead of using an autonumber field.

Thank you.
 

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