aftershokk
Registered User.
- Local time
- Today, 14:34
- Joined
- Sep 5, 2001
- Messages
- 259
Hi all, I am not that good with VBA but I am trying.
I want to make a backup copy of a table every month using a macro that inserts the current date and time into the name of the table. I tried using copy object as shown below but it just pastes the name as written?
Function Macro1()
On Error GoTo Macro1_Err
DoCmd.CopyObject "", "test & Date", acTable, "monthly_table"
Macro1_Exit:
Exit Function
Macro1_Err:
MsgBox Error$
Resume Macro1_Exit
End Function
I want to make a backup copy of a table every month using a macro that inserts the current date and time into the name of the table. I tried using copy object as shown below but it just pastes the name as written?
Function Macro1()
On Error GoTo Macro1_Err
DoCmd.CopyObject "", "test & Date", acTable, "monthly_table"
Macro1_Exit:
Exit Function
Macro1_Err:
MsgBox Error$
Resume Macro1_Exit
End Function