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

Automatically Changing the Name of an Imported Table

Status
Not open for further replies.

cyork

MIS
Apr 4, 2001
34
CA
I want to automate a process where the most recently imported table's name is changed to "Example". I was also wondering if it might be possible to save the name of the most recently imported table as a variable.
 
IF (and I do mean IF) all of the imports are done through code, you could create a table for the import files. I would place the Original file name, the import date, the name changed date, and the new name in this table. When the routine went to do an import, get the current "Example" table, change it's name to anything else (but unique within the db) and then do the import to "Example". Altogrther, maybe 20 lines of code.


MichaelRed
redmsp@erols.com

There is never time to do it right but there is always time to do it over
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top