Emailing a report (1 Viewer)

cktcPeterson

Member
Local time
Yesterday, 21:47
Joined
Mar 23, 2022
Messages
73
When I email a report and outlook opens, I am unable to click back and look at the report and or form I was working in.

Is there a work aroud to this?
 

Ranman256

Well-known member
Local time
Today, 01:47
Joined
Apr 9, 2015
Messages
4,337
outlook may be in modal mode (in control by Access) and wont release until the email is sent (or canceled)
 

cktcPeterson

Member
Local time
Yesterday, 21:47
Joined
Mar 23, 2022
Messages
73
Is there a way to change that? If so, how? I did a quick search and looks like all my forms, reports, say NO.
 

Ranman256

Well-known member
Local time
Today, 01:47
Joined
Apr 9, 2015
Messages
4,337
Does the email code use .SEND command? Once sent, it should release.
 

June7

AWF VIP
Local time
Yesterday, 21:47
Joined
Mar 9, 2014
Messages
5,471
Using Outlook automation?

With automation, finish procedure with code that sets objects to Nothing. Post your code.
 

Ranman256

Well-known member
Local time
Today, 01:47
Joined
Apr 9, 2015
Messages
4,337
yes, thats for outlook.

or theres also :
docmd.SendObject acSendReport ,"rMyReport",acFormatPDF,sTo, ,,sSubj, sMsgBody
 

mike60smart

Registered User.
Local time
Today, 06:47
Joined
Aug 6, 2017
Messages
1,905
Is there a way to change that? If so, how? I did a quick search and looks like all my forms, reports, say NO.
Hi
You can add this additional line so that you get a Preview of the Report.

DoCmd.OpenReport "ReportName", acViewPreview, , "[JobNr]=" & Me!JobNr (Use the PK to identify the required Record)
 

Users who are viewing this thread

Top Bottom