SeadnaS
Programmer
- May 30, 2011
- 214
I'm using this code with a button:
On Error GoTo Err_email_Click
Dim stDocName As String
stDocName = "MONTH_REPORT"
DoCmd.SendObject acSendReport, stDocName, "SnapshotFormat(*.snp)", "ssmallwood@maspac.local", "", "", [PM], "Hello, these are the PM's for the next month.", False, ""
Exit_email_Click:
Exit Sub
Err_email_Click:
MsgBox Err.Description
Resume Exit_email_Click
I keep getting this error message:
Microsoft Access can't find the field "|" referred to in your expression.
Don't understand why i'm getting that, any help appreciated!
On Error GoTo Err_email_Click
Dim stDocName As String
stDocName = "MONTH_REPORT"
DoCmd.SendObject acSendReport, stDocName, "SnapshotFormat(*.snp)", "ssmallwood@maspac.local", "", "", [PM], "Hello, these are the PM's for the next month.", False, ""
Exit_email_Click:
Exit Sub
Err_email_Click:
MsgBox Err.Description
Resume Exit_email_Click
I keep getting this error message:
Microsoft Access can't find the field "|" referred to in your expression.
Don't understand why i'm getting that, any help appreciated!