Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rename report in access

Status
Not open for further replies.

cdlaforc

Programmer
Oct 11, 2006
6
US
How do you with vba rename a report in access.
Thanks,

Chris.
 
How about:
[tt]DoCmd.Rename "rptReport New Name", acReport, "rptReport1"[/tt]
 
Thanks, I actually got it to work a little differently. What I was doing is querying a table with records for a bunch of different departments at work so I was looping through the departments and I wanted to rename the report and then print it to my adobe writer and name it back, then do it again. A guy at work just suggested to write it out and then use the Name method to rename the file at that point. It worked fine, but again thanks for the help.
Thanks,


Chris.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top