Hello everyone, I have a question and I haven't been able to figure it out. I have a database that has all of our safety issues which has primary field Report# and what I am doing is trying to automatically e-mail a report which I have the Code for that which is
Now my question is how do I run a where clause from this if I only want it to e-mail the current Report #. The way they enter the information is by add only so it doesn't show the rest of the report#'s, however it's still e-mailing all of the reports. Can anyone help?
Thank you in advance
Code:
DoCmd.SendObject acSendReport, "Investigation Report", "Rich Text Format", , , , "Investigation Report"
SendKeys "%", no
SendKeys "A", no
SendKeys "S", no
Thank you in advance
Comment