I want to set up a command button to email a report from a form. I had the Wizard set up the following:
Dim stDocName As String
stDocName = "rptKnoxWorkOrder"
DoCmd.SendObject acReport, stDocName
It works, but there is three other things I need to happen.
1. I want to filter this report so that only the Current Record is emailed like...stLinkCriteria = "[OrderNumber]=" & Me![txtOrderNumber], but I don't know where or how to use it.
2. The email program I use is GroupWise, but the default is OutLook Express. How can I make it so the report is sent through GroupWise without changing the default email program.
3. I want to automatically send the report as a SnapShot format, but that doesn't seem to be an option?
I thank you in advance for any help.
Dim stDocName As String
stDocName = "rptKnoxWorkOrder"
DoCmd.SendObject acReport, stDocName
It works, but there is three other things I need to happen.
1. I want to filter this report so that only the Current Record is emailed like...stLinkCriteria = "[OrderNumber]=" & Me![txtOrderNumber], but I don't know where or how to use it.
2. The email program I use is GroupWise, but the default is OutLook Express. How can I make it so the report is sent through GroupWise without changing the default email program.
3. I want to automatically send the report as a SnapShot format, but that doesn't seem to be an option?
I thank you in advance for any help.