Microsoft
Software
Hardware
Network
Question : Reset autonumbering in a table automatically
I have been researching resetting autonumber in a table. I understand that the best approach would be to delete the column and when it is readded, the column renumbers rows. This works perfectly, but my users will be running reports off of this table.
Is there a way I can delete a column and re-add it through a query or vba.
The outcome really that when the user presses a button they get a report that runs a query against the table and the table has the new row numbering. I have a really complex query that needs this table row updated each time they run the report. Automating it would be the best!
Answer : Reset autonumbering in a table automatically
You can (and I did) also run the as a Data Definition Query:
ALTER TABLE [tbl_NEXT_OPERATION]] ALTER COLUMN [ROWID] COUNTER(1,1)
What didn't work for you ?
mx
Random Solutions
Using 7-zip from command line. Has anybody done it?
Summarizing Data using Access 2007 and Excel 2007
Cannot link to SQL Server Express 2008 table from within Access 2007
Using alternative to LIMIT command and using INNER JOIN in MS SQL Query
Exchange 2007 - Test-SystemHealth (Upgrading servicepack 2)
Trouble inserting date into Access 2003 database from Excel VBA using SQL
Declare variable in Microsoft SQL Server Management Studio
Access 2007 Report Showing ID (Primary Key) - How Can I Show Value?
Companyweb keeps promoting administrator for username and password
Who is logged into my access database now?