S
SG
I have been trying to setup my reports so that the user can email them, I
have maged to do this but have came accross a problem when I have a where
clause see code below....
Private Sub Command8_Click()
Dim ReportName As String
Dim strWhere As String
ReportName = "SalesReport1"
strWhere = "InvoiceDate Between #" & _
Format(Me.Startdate, "mm/dd/yyyy") & "#" & _
" and #" & Format(Me.EndDate, "mm/dd/yyyy") & "#"
DoCmd.SendObject acReport, ReportName, strWhere
End Sub
The stWhere keeps appearing in the To feild of the email!
Any suggestions would be gratefuly recieved.
Thanks
S
have maged to do this but have came accross a problem when I have a where
clause see code below....
Private Sub Command8_Click()
Dim ReportName As String
Dim strWhere As String
ReportName = "SalesReport1"
strWhere = "InvoiceDate Between #" & _
Format(Me.Startdate, "mm/dd/yyyy") & "#" & _
" and #" & Format(Me.EndDate, "mm/dd/yyyy") & "#"
DoCmd.SendObject acReport, ReportName, strWhere
End Sub
The stWhere keeps appearing in the To feild of the email!
Any suggestions would be gratefuly recieved.
Thanks
S