B
benforum via AccessMonster.com
I am trying to create a button on a form (form name is [BG Paper Info]), when
cliking the button it should do the following things:
1. Activate a query [BG Email from AE Code] that uses a Control [AE Code]
that appears on the form (which can change from record to record), in order
to generate an Email address ([EmailAddress] in the query)to which to email a
report.
The report is generated using another query [BG Reminder letter] that
contains a memo field with the text of the letter, the text depends on a code
[Reminder Type] that appears in the form.
The two queries and the report operate correctly and produce the desired
outputs.
2. I try to use sendobject to email the report to the address in [BG Email
from AE Code]![EmailAddress] and nothing is emailed and I receive error
messages.
I will appreciate it if someone could tell me how to do it right.
A seperate issue is: How do I insert the text of the report in the message so
it is not an attachement, the text is much longer than the 255charcter limit.
I use ACCESS 2007.
-Ben
cliking the button it should do the following things:
1. Activate a query [BG Email from AE Code] that uses a Control [AE Code]
that appears on the form (which can change from record to record), in order
to generate an Email address ([EmailAddress] in the query)to which to email a
report.
The report is generated using another query [BG Reminder letter] that
contains a memo field with the text of the letter, the text depends on a code
[Reminder Type] that appears in the form.
The two queries and the report operate correctly and produce the desired
outputs.
2. I try to use sendobject to email the report to the address in [BG Email
from AE Code]![EmailAddress] and nothing is emailed and I receive error
messages.
I will appreciate it if someone could tell me how to do it right.
A seperate issue is: How do I insert the text of the report in the message so
it is not an attachement, the text is much longer than the 255charcter limit.
I use ACCESS 2007.
-Ben