I wonder if anyone can help.
I am trying to save a record on a form before closing it. I have tried both of these lines of code:
DoCmd.RunCommand acCmdSaveRecord
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
But I get this message:
Run time error ‘2046’
The command or action ‘SaveRecord’ isn’t available now.
Has anyone any ideas on what I can try next please.
Many thanks