473,385 Members | 1,331 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,385 software developers and data experts.

Send two objects by e-mail

36
Hello !

I Try to send two objects reports with this code

DoCmd.SendObject acReport, "TEST1", "TEST2", acFormatSNP,

The reports are Test1 and Test2. But don't work because the comma passed to the format and the code no permit to write other object.

How this code permit to include two objects for send in a command botton?

Thanks everyone!
Mar 18 '08 #1
2 1751
rdsandy
20
Hi ElTipo,

I haven't used the send object before, but you say it won't work because your using the comma in a way to send two reports in the one line of code. If you put a comma in between TEST1 and TEST2, wouldn't it give the next criteria for the DoCmd.SendObject command?.

If taking out the TEST2 works (see below for an example), then you could try having 2 command lines, one for TEST1 and one for TEST2.

Something like this (although may not be correct syntax as I only removed the "TEST2" part so you will have to check):

Expand|Select|Wrap|Line Numbers
  1. DoCmd.SendObject acReport, "TEST1", acFormatSNP,
  2. DoCmd.SendObject acReport, "TEST2", acFormatSNP,
  3.  
HTH,

Andrew
Mar 18 '08 #2
Hi,

You have an option in Access ie Macro.
In Macro, you can select SendObject from Action Column, Below you will find the details ie

Object Type : Report
Object Name : Report 1
Output Format : Snapshot Format
To: Email ID
CC: Email ID
BCC: Email ID
Subject: Subject 1
Message Text : Message
Edit Message : Yes/No
Templete File:

Save the macro and run the macro

It will work.

Thanks

Kartik
Mar 19 '08 #3

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

Similar topics

1
by: **** KiteOregon **** | last post by:
I need to send & receive XML Document Objects via the Message Queue. We have several applications that insert XML Document Object into the message queue. This works with no problem. I am trying...
4
by: Robert Rossney | last post by:
I'm trying to send and receive XmlDocument objects using the System.Messaging.dll functions. The code I've written follows, as best I can tell, the methodology used in the sample code for the...
0
by: Steve | last post by:
I am looking into UdpClient sample code from MSDN where one UdpClient object used for both send and receive operation. Please take a look at the link below...
4
by: Zahid | last post by:
Hi, I have a number of structures that I want to send using UDP protocol. How do I convert the structure into bytes/array of bytes? Using UDP protocol is a MUST - a Client Requirement. Am I...
4
by: Sean Feldman | last post by:
Hello, I've installed WSE2 and succedded to download from WebService DataTable object, but can't do the oposite. Anyone can help please? Thanks a lot!
10
by: Aj Blosser | last post by:
Hey guys, I have a question for you, I have a setup where I'm sending files through the POST to a php web page, I read the file contents, put that file contents as text into the POST string, and...
0
by: neonspark | last post by:
I'm buidling some simple macro functionality for my app so the users can record a sequence of keyboard inputs and replay them reliably via some menu. Originally, I used: protected override bool...
2
by: shahnawaz shaikh | last post by:
hi friends i want to send email thoruth stored procedure or i want to give functionality like alert which is send email automaticaly from database. just like a news or any ad email weekly or...
1
by: Daniel | last post by:
Hello, I've been building a system that has need to send object data across the network. The approach I've taken has been to build Data Transfer Objects, which just contain the attributes of...
0
by: Jean-Paul Calderone | last post by:
On Thu, 2 Oct 2008 14:45:12 -0700 (PDT), Daniel <daniel.watrous@gmail.comwrote: You might be interested in Perspective Broker: ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.