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

Create numbered history tables

Status
Not open for further replies.

HMartin0255

IS-IT--Management
May 16, 2007
3
US
I have a database that automatically imports an excel spreadsheet and runs it through several queries. I am wondering if it is possible to create a macro so that when it imports it creates a history of the spreadsheet imported. I know this can be done with one spreadsheet but, can it be done so it archives more than one in a numerical order? Can I have it archive up to ten of the previous spreadsheets?
 
If you're using VBA code for your import, then you could always have it either save using a sequence number (would either require a table with a record that has a value that is incrementes, or you could get a list of the files already saved and either increment or loop), or you could save and use a date/time stamp in the file name.

Learn from the mistakes of others. You won't live long enough to make all of them yourself.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top