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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reset Autonumber after export 2

Status
Not open for further replies.

valgore

Technical User
Nov 12, 2008
180
US
So i have three tables.

RawImport- where i import raw data
AmexCurrent- where certain columns of RawImport go for editing
AmexHistorical- where AmexCurrent data goes for archiving once its complete

What i want to do is when data comes into RawImport and i move the data into AmexCurrent, i want the ID# to start back to one so that the next time i import, the data in RawImport will start at one.
i want to do the same for AmexCurrent

Valgore
 
A starting point:
Code:
DoCmd.RunSQL "ALTER TABLE RawImport ALTER COLUMN [ID#] COUNTER(1,1)"

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Wow. that was amazing. thank you SO much.

Valgore
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top