I've got a functional ADP project which compiles and works seamlessly. But once I save and compile the project as an ADE file the only modal form's save button return the following error:
"The command or action 'Save' isn't available now."
The Save button's code is as follow:
How is this possible? What is different for ADE and ADP to cause such an error out of the blue? Doesn't ADE just make all objects read-only without messing around with functionality?
Is there maybe another way to code the Save button to get past the error in ADE?
Hope you guys will be able to assist to get me past this hurdle.
Thanks
"The command or action 'Save' isn't available now."
The Save button's code is as follow:
Code:
Private Sub cmdSave_Click()
On Error GoTo Err_cmdSave_Click
DoCmd.RunCommand acCmdSave
DoCmd.Close
Exit_cmdSave_Click:
Exit Sub
Err_cmdSave_Click:
MsgBox Err.Description
Resume Exit_cmdSave_Click
End Sub
How is this possible? What is different for ADE and ADP to cause such an error out of the blue? Doesn't ADE just make all objects read-only without messing around with functionality?
Is there maybe another way to code the Save button to get past the error in ADE?
Hope you guys will be able to assist to get me past this hurdle.
Thanks