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
How do I delete .txt files using VBA in Excel 2007?
IIS7 Port 80 Redirection in an App
.Net v1.1 Website Problem
Obtain the latest date in SQL datatable using vb.net 2005
How do I get content aligned corectly in a WPF Combobox
Change the term "This product is licensed to" in Office 2003 on a Terminal Server
A connection was successfully established with the server, but then an error occurred during the login process. (provider: TCP Provider, error: 0 - The specified network name is no longer available.)
Send Emails Via MS Access Form
How to limit query to top n records
How to Create query from selction made in a drop down list.Acees 2007