Changing a tables name with VBA

T

Thomas Olsen

ALL,

I would like to change the name of a table dynamically
giving it the same name with the current date attached to
it..



Mytable to Mytable-10/23/20003


IN advance thanks for your help..

Thomas Olsen
 
W

Wayne Morgan

Using your current example:

DoCmd.Rename "MyTable-" & Format(Date, "Short Date"), acTable, "MyTable"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top