473,406 Members | 2,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Docmd.SendObject acSendReport with Report Parameter

28
Good Afternoon,

Is there a way to add an additional parameter to the SendObject method of the acSendReport parameter? Kind of like the DoCmd.OpenReport object you can specify a Report parameter when it opens.

Could look something like this...

Expand|Select|Wrap|Line Numbers
  1. DoCmd.SendObject acSendReport, _
  2.         "Report Name" & Parameter, _
  3.         acFormatPDF, _
  4.         .Fields(0), , , _
  5.         "Subj", _
  6.         "Message", _
  7.         False, False
  8.  
Aug 12 '14 #1
1 2976
twinnyfo
3,653 Expert Mod 2GB
pwag,

Not that I know of. However, you should be able to set the record source of the Report by basing the query off the record(s) you specify on your Form. For example, if you have a form that lists records and you only want to print the current record, then have the report's record source be a query that uses the record ID in its criteria. You can also do this using global variables or the TempVars variables. There are several options, it just depends on how you want to build it.
Aug 13 '14 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Jay Bienvenu | last post by:
I am trying to execute a DoCmd.SendObject command to produce an email message from Access 2000. The command produces the email message, but the To:, CC: and BCC: fields are blank. The subject field...
1
by: Alfred | last post by:
Hi I am using access 2002 1.0 I want to email a word or html file using the docmd.sendobject The document must be send as a attachment. 2.0 Second I would like to tell the Docmd.Sendobject to...
5
by: Tom Louchbaum | last post by:
When I preview my Access 2000 Report it looks fine. When I Email the report using DoCmd.SendObject acSendReport, "Report", acFormatRTF, "To Address", , , "Subject", , False the resulting...
1
by: Lauren Quantrell | last post by:
This works in my Access2000 MDB but not in the MDE created from the same file (on the same workstation): DoCmd.SendObject acSendReport, "myReportName", acFormatRTF, "someone@somewhere.com", , ,...
1
by: Tom Louchbaum | last post by:
When I preview my Access 2000 Report it looks fine. When I Email the report using DoCmd.SendObject acSendReport, "Report", acFormatRTF, "To Address", , , "Subject", , False the resulting...
4
by: dszmauz | last post by:
I'd like to send a report to a distribution of email addresses. The distribution list is stored in Email.. How do I use the DoCmd.SendObject to send to a list? The command below isn't working:...
1
by: Filips Benoit | last post by:
Dear All, DoCmd.SendObject acSendReport, "RPT_ITEM", acFormatTXT, Me.CNT_EMAIL, , , "testEmail", "test", False The report is converted to RPT_ITEM.txt before sending as attachment. Is the...
1
RobH
by: RobH | last post by:
i currently send a report to a reciepient using the Docmd.Sendobject acSendReport which works really well - now my customer wants two reports sent in the same email.. Any thoughts???
5
by: neosam | last post by:
Hey all, I am not able to integrate these 2 actions in one command. What i am doing is... A button which sends a report with only specific data to a particular person (via outlook). I am able to...
2
by: austinboston | last post by:
I've gone down the road of using docmd.sendobject for sending out reports from an access database because I don't have to save the attachment to media that way, I can just create and send. My problem...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.