rename table

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I want to be able to rename a table called 'numbers' in code from numbers to
numbers + the current date

eg: from numbers to number & date()

Your assistance with the relevant code for the on_click action would be most
appreciate.

I have looked in to Table object, the Tables container, and
TableDefs but am getting a bit confused.

Many thanks
Dylan
 
Hi,
I want to be able to rename a table called 'numbers' in code from numbers to
numbers + the current date

eg: from numbers to number & date()

Your assistance with the relevant code for the on_click action would be most
appreciate.

I have looked in to Table object, the Tables container, and
TableDefs but am getting a bit confused.

Many thanks
Dylan


DoCmd.Rename "Numbers" & Format(Date, "mm/dd/yyyy"), acTable,
"Numbers"
 

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

Back
Top