I have a form based upon a query. I want to generate a report based upon the current form and attach that report to an Outlook e-mail.
In the past I used a macro in Access 97 that :
1. Saved the current form whose record source was a table
2. Opened the report in Print Preview Mode
3. The query that is the record source of the report had criteria in the EventID field to select the current record in the form
[Forms]![Suspense]![EventID]
I used the SEND command in the macro.
It started Outlook and attached the report to the message.
Can’t get it to work in Access 2000 says Macro failed
under arguments it says:
rptTransmittal, Print Preview, ,
I tried putting a SQL where statement in the macro argument to use the current form but that doesn’t work either.
What should I be looking up to give me some examples/help on this?
Thanks,
Perry Van