I added a command button to my form to email a report called rpt_Master. The email functionality works fine. . . only one problem, when I complete the form and click the command button to email the report, the form is mailed blank (no data). If I advance the record, then come back to the record (form) I was in, the data is there when I use the email button again.
I think it comes down to saving the record to the master table somehow before I run the macro via the command button via "OnClick" and send the data. the same thing happens if I access a record via my form, change some data and try to email it. It is emailed without the updates having been effected.
Does this need some type of " If me.dirty" code to save the data to the master table without exiting or advancing the form?.
I think it comes down to saving the record to the master table somehow before I run the macro via the command button via "OnClick" and send the data. the same thing happens if I access a record via my form, change some data and try to email it. It is emailed without the updates having been effected.
Does this need some type of " If me.dirty" code to save the data to the master table without exiting or advancing the form?.