Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I get each new record to add 1 to a field?

Status
Not open for further replies.

Happy100

Technical User
Jun 25, 2004
102
GB
Hi

I have search through this forum for the autonumber option, but could not fine the answer to this question.

I would like to know if it is possible to have a field in each record that adds 1 every time a new record is added, but will change each of these fields if a record was delated?

The reason for this is, I have created a asp web page that shows a table with each row being numbered starting at 1, this number goes up one at a time. ie. 1,2,3,4 etc.

I want the field in my access record to provide this numbering, they are not ID's by any desciption, just row numbers. So say I have 5 recoeds on the web page it would show 1,2,3,4 & 5, if I was to delate record number 3, the database would change the numbers about so there would only be 1,2,3 & 4 records.

Hope that makes sense?

Many thanks

Happy.
 
Have a look at
thread701-876963

it adds them in a query?

Hope this helps
Hymn
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top