Lanason
Registered User.
- Local time
- Today, 03:23
- Joined
- Sep 12, 2003
- Messages
- 258
Hi Guys and Girls,
I want to send a report to an email but I wan to do it for selected customer
I'm gunna use the SendObject to send the mail but I need to pass the data to the Report to just select to required customer
so to open the report I want to have something like:-
Dim CustomerName as string
CustomerName = "Cust1"
docmd.openreport rptReprt, AcPreview, CustomerName
to send it
Dim CustomerName as string
CustomerName = "Cust1"
DoCmd.SendObject acReport, "EmployeeReport", "SnapshotFormat(*.snp)", AddressTo, ccTo, bcTo, Subject, msgBody, False, ""
I want to have the CustomerName (viable / parameter) in the Report query so it know which customer to select
Help on the syntax would be appreciated
I want to send a report to an email but I wan to do it for selected customer
I'm gunna use the SendObject to send the mail but I need to pass the data to the Report to just select to required customer
so to open the report I want to have something like:-
Dim CustomerName as string
CustomerName = "Cust1"
docmd.openreport rptReprt, AcPreview, CustomerName
to send it
Dim CustomerName as string
CustomerName = "Cust1"
DoCmd.SendObject acReport, "EmployeeReport", "SnapshotFormat(*.snp)", AddressTo, ccTo, bcTo, Subject, msgBody, False, ""
I want to have the CustomerName (viable / parameter) in the Report query so it know which customer to select
Help on the syntax would be appreciated
Last edited: