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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trouble Emailing Reports / Access 97

Status
Not open for further replies.

Toga

Technical User
Jul 21, 2000
234
US
I have an issue with a report that I've developed where the user has the option to either Preview / Print it or Email it to another user. No problem with Previewing or Printing the report....but I have a formatting issue if the report isn't opened in preview mode prior to emailing it.

Here's the deal, depending upon certain criteria of a given field, when the report opens, I have to modify the layout of the report. I do this in the Report_Activate subroutine.

As long as I open the report in preview mode....and then continue on letting it create an email....no problem. It's only when I try to create an email without it opening in preview mode first.

Obviously, the issue is because the code doesn't run unless I open it in preview mode first. Is there anyway around this?

My intermediate fix is to open in preview mode first but was hoping to get around that if I could. I could have a separate report for each different format....but was trying to avoid that option.

Thanks for your help!
Toga
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top