Here is the code for my command button. It now pulls only one button, but it no longer stores (or at least pulls) the current date and time from the database to the report, it used too but not anymore.
Dim stDocName As String
Dim strEmail As String
Dim strMailSubject As String
Dim strmsg As String
Dim strReportName As String
Dim strCriteria As String
[WhitesEndTime] = Now()
DoCmd.RunCommand acCmdSave
strReportName = "WhitesDone"
strCriteria = "[MMS Job#]='" & Me![MMS Job#] & "'"
DoCmd.OpenReport strReportName, acViewPreview, , strCriteria
strDocName = "WhitesDone"
strEmail = "rgarneriii@merklenet.com"
strMailSubject = Client & " " & "MMS JOB #" & " " & [MMS Job#]
DoCmd.SendObject objecttype:=acSendReport, _
objectname:=strDocName, outputformat:=acFormatHTML, _
To:=strEmail, subject:=strMailSubject, messagetext:=strmsg
It puts the time and date in a text box on the form, but that is not transferred to the report. Anyone care to take a guess as to what is goin on?
learnasugo