I have a Formview on ASP page that insert records to mdb file.
Eg the table has 2 col: ID, Name
I want the ID field to be automatically be populated as the next largest number on the existing ID values when I add record via FormView.
Eg the table now has 2 rows
1, John
2, Mary
I want FormView only display Name field when keying in and inserting record but oninsert, it add value of 3 (ie max of existing +1) and save to ID filed as user insert record of the names.
What is the syntax of max +1 and where to put it ?
Thanks