Hi
By using VBA Access ,I want to copy excel file and rename it depending on Table first field.
For example, instead of using fixed name like:
FileCopy "Cocuments\Folder\CurrentFile.xlsx", "C:\Documents\Folder\NewFile.xlsx"
I want to use:
FileCopy "Cocuments\Folder\CurrentFile.xlsx", "C:\Documents\Folder\NewFile" & [Table1]![Feild1] & ".xlsx".
But it is not work. What is the correct code ?