auto numbering
RH

Forum home » Delegate support and help forum » Microsoft Access Training and help » Auto numbering

Auto numbering

resolvedResolved · Low Priority · Version 2010

Abigail has attended:
Access Intermediate course

Auto numbering

How do I reset my auto numbering

RE: Auto numbering

Hi again Abigail

Autonumber values will go out of sequence if newly added records are deleteted from the table.

Here's a way to adjust the next Autonumber value so it follows on from the previous number in a table (for example a RoomID in a table called Rooms).

1. First create a new table with 1 field with the same name as the Autonumber field. Change the data type to Number.

For example a table called Tablre1 with field RoomID with no primary key.

2. View Table1 and type the next RoomID number that you want to appear in the Rooms table. Then close Table1.

3. Now create an Append query that appends Table1 to the main table (Rooms). Create, Query Design, Select Table1 then press the Append (+!) from the Design ribbon.

Add RoomID from Table1 and append to Rooms.

Press the Run button (!)

4. Close the query.

The rooms table should now have the next RoomID number in sequence.

Hope that helps Abigail. Best to do this when you are ready to enter a new Room record.

Good luck with developing your database.

Regards
Doug Dunn
Best STL

Wed 11 Jun 2014: Automatically marked as resolved.


 

Access tip:

Create own ribbon tab - Access 2010

a. In Access click on the File tab
b. Select Options from left hand side
c. Choose the Customize Ribbon section
d. Click the New Tab button (below the list of tabs on the right hand side of the dialog box)
e. Select the New Tab (Custom) and enter a name, by clicking the Rename button (below the list of tabs on the right hand side of the dialog box)
f. Select the New Group (Custom) and enter a name, by clicking the Rename button (below the list of tabs on the right hand side of the dialog box)
g. Add commands to your tab and group by locating them on the list on the right hand side (remembering that you can change the list using the drop down box at the top of the list of commands) and clicking the Add button between the two panes to add them to your tab and group
h. You can rearrange the commands in your group, the groups on any tab or the tabs, using the up and down arrow buttons beside the list of tabs.
i. Click OK to apply your changes

View all Access hints and tips


Server loaded in 0.05 secs.