Greetings,
I am trying to write VBA code that would save the record that is currently in another From. I tried this:
Forms!frmMeterReads.DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
Forms!frmMeterReads.DoCmd.GoToRecord , , acNewRec
But I get an error when I execute this code from a button in another Form.
Any ideas?
I am trying to write VBA code that would save the record that is currently in another From. I tried this:
Forms!frmMeterReads.DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
Forms!frmMeterReads.DoCmd.GoToRecord , , acNewRec
But I get an error when I execute this code from a button in another Form.
Any ideas?