Well I tried using those resources. Seems to be the same as most research I've been doing, everyone posts tons of code up but I don't find anything exactly explaining what the code is doing. I'm at this point right now:
Code:
Private Sub Command33_Click()
Dim rs As DAO.Recordset
stCaption = "Clearance Instructions - " & Format(Now(), " mm-dd-yyyy")
myPath = "X:\SHIPPING - FEDEX\FedEx Letters\"
stTo = "doolittle@projectorsupercenter.com"
stEmailMessage = "Please see the attached clearance instructions."
stSubject = "Clearance Instructions - " & Date
stReport = "rpt_FedEx_Email"
Set rs = CurrentDb.OpenRecordset("SELECT TrackingNumber FROM qry_NonTRANS_Tracking_Today")
DoCmd.OpenReport "rpt_FedEx_Email", acViewPreview
While Not rs.EOF
DoCmd.SendObject acSendReport, , acFormatPDF, stTo, , , stSubject, stEmailMessage, True, ""
DoCmd.OutputTo acOutputReport, , acFormatPDF, myPath & stCaption & ".pdf", False, , , acExportQualityPrint
rs.MoveNext
Wend
DoCmd.Close acReport, stReport, acSaveNo
rs.Close
End Sub
I guess I'm getting somewhere as I have two tracking numbers currently coming up in the query I'm referencing and my on click event is prompting me to send two emails. However each email contains one large PDF, with two pages, each page referencing one of the tracking numbers. Now I just need to figure out how to break it apart so each email contains a PDF with one page referencing its own tracking number. I have a feeling I simply need to move something referencing the RecordSet around? I'm assuming "rs" stands for recordset.
Getting somewhere which is promising though! I'll keep following the rabbit hole of links and see where it takes me