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"
 
Back
Top