M
Mary Beth
I have a form called frmAuthorization with a combo box drop down menu called
RNAsssor. I want to send an email to the Assessor chosen in the combo box
with a report attached containing the data just entered on the form. I have
a macro set up to send the report in an email.
In the On Exit event of the combo box I have:
DoCmd.Requery
DoCmd.RunMacro "mcrInitialAssessment.Initial"
The problem is when I exit the combo box, it does the requery and all of the
data disappears from the form, and the email is not sent. When I take the
DoCmd.Requery out of the code, the email and report macro works, but there is
no data in the report. This only works properly when I reopen the form, look
for the existing record, and choose the assessor again.
Any thoughts, or any additional info you may need to help me?
Thanks,
Mary Beth
RNAsssor. I want to send an email to the Assessor chosen in the combo box
with a report attached containing the data just entered on the form. I have
a macro set up to send the report in an email.
In the On Exit event of the combo box I have:
DoCmd.Requery
DoCmd.RunMacro "mcrInitialAssessment.Initial"
The problem is when I exit the combo box, it does the requery and all of the
data disappears from the form, and the email is not sent. When I take the
DoCmd.Requery out of the code, the email and report macro works, but there is
no data in the report. This only works properly when I reopen the form, look
for the existing record, and choose the assessor again.
Any thoughts, or any additional info you may need to help me?
Thanks,
Mary Beth