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

Sending a Form by e-mail

I have developed an Access database and wish to e-mail a form to a
central address advising of changes etc.
Have the form and command button the form with a macro behind using
SendObject command.

When I use the command button, the program opens Lotus Notes, inserts
the correct e-mail address but does not attach the form.

If I send the e-mail, I get the covering message but no attachment.

Can anybody advise?
Nov 13 '05 #1
3 4103
st*************@transport.qld.gov.au (StuartD) wrote in message news:<75**************************@posting.google. com>...
I have developed an Access database and wish to e-mail a form to a
central address advising of changes etc.
Have the form and command button the form with a macro behind using
SendObject command.

When I use the command button, the program opens Lotus Notes, inserts
the correct e-mail address but does not attach the form.

If I send the e-mail, I get the covering message but no attachment.

Can anybody advise?


Create a report that looks like the form and send that? Then just
pass the recordID in the filter of the report and mail that.
Nov 13 '05 #2
StuartD wrote:
I have developed an Access database and wish to e-mail a form to a
central address advising of changes etc.
Have the form and command button the form with a macro behind using
SendObject command.

When I use the command button, the program opens Lotus Notes, inserts
the correct e-mail address but does not attach the form.

If I send the e-mail, I get the covering message but no attachment.

Can anybody advise?

Quite simply, you can't .

The best you would be able to do is either of the following and neither
are very glamourous:
1 - Use SendKeys to take a screen shot of the form (Alt+PrtSc captures
just the active form) the use SendKeys again to paste the captured image
into the email body.

Clunky but it would work.
2 - Use code to read the data from the forms record source and formally
write it into the email body.

No formatting to speak of so it is just delivering data in plain text.
Much neater but (programatically) but pretty bland.
As I said not glamorous but if you absolutely HAVE to get the data into
the email body it's probably your only option.

If you want code for number 2 just ask and I'll find it.

The reason you can't do what you're trying is because you are
effectively trying to embed a native Access object into a Lotus notes
email and I think you'll find Notes has no provision for the inclusion
of Access objects. Even if it did, it'd be un-wise to expect that the
recipients' Email program would be able to accomodate an embedded Access
object. Even in an HTML format email.

Good luck.
Nov 13 '05 #3
"Mr. Smith" <Mr.Smith@Large> wrote in message
news:40***********************@news.syd.swiftdsl.c om.au...
StuartD wrote:
I have developed an Access database and wish to e-mail a form to a
central address advising of changes etc.
Have the form and command button the form with a macro behind using
SendObject command.

When I use the command button, the program opens Lotus Notes, inserts
the correct e-mail address but does not attach the form.

If I send the e-mail, I get the covering message but no attachment.

Can anybody advise?

Quite simply, you can't .

The best you would be able to do is either of the following and neither
are very glamourous:
1 - Use SendKeys to take a screen shot of the form (Alt+PrtSc captures
just the active form) the use SendKeys again to paste the captured image
into the email body.

Clunky but it would work.
2 - Use code to read the data from the forms record source and formally
write it into the email body.

No formatting to speak of so it is just delivering data in plain text.
Much neater but (programatically) but pretty bland.
As I said not glamorous but if you absolutely HAVE to get the data into
the email body it's probably your only option.

If you want code for number 2 just ask and I'll find it.

The reason you can't do what you're trying is because you are
effectively trying to embed a native Access object into a Lotus notes
email and I think you'll find Notes has no provision for the inclusion
of Access objects. Even if it did, it'd be un-wise to expect that the
recipients' Email program would be able to accomodate an embedded Access
object. Even in an HTML format email.

Good luck.


As Pieter Linden suggested in the "...Crystal Reports...' thread, you might
be able to kludge this by printing your form (better to create a proper
report, but still do-able) as a PDF -> Save to disk -> attach the PDF to the
email.

HTH
Doug

--
Remove the blots from my address to reply
Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Ot?vio | last post by:
Hi! I'm havin a problem about sending a binary file with fsockopen. My problem is solved when i do: -------------------->8------CODE----------------------------- <form...
5
by: BaWork | last post by:
I have a web form where a client can select which site members to send an email to. This form is populated from the contents of the member table, so the form can have 0-x names listed on it...
1
by: Zaidan | last post by:
I am running Excel2000 under WIN98 2nd edition, and I am writing a VBA code (I will consider using javascript if I have to) that does the following, at the user command: 1- Start MS Explorer and...
2
by: Dknight | last post by:
Hi, all! I have a problem, how can I check a form data before sending it to server. I have the example below, but first data is sent to server, but after JavaScript checks the data :( I need...
2
by: Del | last post by:
I have two question on sending email messages from MS Access (Versio 2000, 2002, and 2003). I have a form with a command button to send an email message, the code behide the button is as follows;...
2
by: yugo | last post by:
Hi there, this is my first post but i've been reading and finding good solutions here for more than 6 months. Now its my turn to have some problem with access. I have a form with a button that when...
7
by: Marcin | last post by:
Hello all! A few years ago I created a form with button which let me send an email with an attachment. It was created in Access 97. Now I would like to move this application into Access 2003....
4
by: Schwarty | last post by:
I hope I posted this to the correct group. If not, please let me know and I will get it posted in the correct section. I have a web application developed in ASP.NET using C# for the code behind....
0
by: danishce | last post by:
Hello All: I am developing a client/server application using vb.net winsock programming. I am sending data to Server and at the same time receive the incoming data from the server. My application...
1
by: PrabodhanP | last post by:
I have form on my website.I am sending data entered by visitor to particular email-id through php script.Now I want to add some radio buttons and depending on selacted radio button form data should...
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
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.