yaro.kobzar
New member
- Local time
- Today, 11:08
- Joined
- May 17, 2011
- Messages
- 8
Hi everyone,
I'm have created a button on a report that will export the report to an excel datasheet.
Here is what I have as the code...
DoCmd.OutputTo acOutputReport, "Class Roster By Instructor ID", acFormatXLS, "S:\BasicSkills\BaSIS Output\ClassRoster" & Format(Date, "yyyymmdd") & ".xls"
Here is the problem: I was wondering if it's possible to set the name of the instructor in the file name? The field Instructor/Team Name contains the name of the instructor and I was wondering if it can put that in the name of the file too...
Right now, I get ClassRoster20110526.xls
Is it possible to get something like Class Roster Anderson 05262011.xls?
I'm have created a button on a report that will export the report to an excel datasheet.
Here is what I have as the code...
DoCmd.OutputTo acOutputReport, "Class Roster By Instructor ID", acFormatXLS, "S:\BasicSkills\BaSIS Output\ClassRoster" & Format(Date, "yyyymmdd") & ".xls"
Here is the problem: I was wondering if it's possible to set the name of the instructor in the file name? The field Instructor/Team Name contains the name of the instructor and I was wondering if it can put that in the name of the file too...
Right now, I get ClassRoster20110526.xls
Is it possible to get something like Class Roster Anderson 05262011.xls?