G
Guest
I using the following code on a form which should take the current record and
send
it to a snapshot file via e-mail. What is happening is I get all the
records instead of
the current record. What I'm I doing wrong?
Thanks.
Private Sub Command29_Click()
Dim strIdentify As String
If Me.Dirty Then 'Save any edits.
Me.Dirty = False
End If
If Me.NewRecord Then 'Check there is a record to print
MsgBox "Select a record to print"
Else
gstrReportFilter = "[ID] = " & Me.[ID]
strIdentify = [Identify]
' LOL000913 Hobrand
If [Standard] = "EN 12021:1998" And [LOLID] = "LOL000913" Then GoTo
913
MsgBox [LOLID] & " has not been setup yet!"
GoTo 500
913 DoCmd.SendObject acSendReport, "HobrandEN12021913", acFormatSNP,
"abc123.net; testing123.net; (e-mail address removed)", , "(e-mail address removed)", "Your
Resutls", "Attached are your results for Report ID - " & strIdentify
500 End If
End Sub
send
it to a snapshot file via e-mail. What is happening is I get all the
records instead of
the current record. What I'm I doing wrong?
Thanks.
Private Sub Command29_Click()
Dim strIdentify As String
If Me.Dirty Then 'Save any edits.
Me.Dirty = False
End If
If Me.NewRecord Then 'Check there is a record to print
MsgBox "Select a record to print"
Else
gstrReportFilter = "[ID] = " & Me.[ID]
strIdentify = [Identify]
' LOL000913 Hobrand
If [Standard] = "EN 12021:1998" And [LOLID] = "LOL000913" Then GoTo
913
MsgBox [LOLID] & " has not been setup yet!"
GoTo 500
913 DoCmd.SendObject acSendReport, "HobrandEN12021913", acFormatSNP,
"abc123.net; testing123.net; (e-mail address removed)", , "(e-mail address removed)", "Your
Resutls", "Attached are your results for Report ID - " & strIdentify
500 End If
End Sub