I have database that runs fine as an mdb. However, everytime I use the Tools>Database Utilities>Make mde file and then run one of the forms (and it only occurs on one specific form) I get the error “The expression On click you entered as the event property produced the following error: The command or action ‘Save’ isn’t available now.
* The expression may not result in the name of a macro, the name of a user-defined function, or [Event Procedure]
* There may have been an error evaluating the function, event, or macro.
The following is the code behind the save control on the form. (This works fine in the mdb with no errors, only get the error in the mde AAAAAAHHHHHH! ! ! ! !)
Private Sub cmdSaveRecord_Click()
DoCmd.RunCommand acCmdSave
Me.AllowEdits = False
cmdGotoFirstRecord.Enabled = True
cmdGotoPreviousRecord.Enabled = True
cmdGotoNextRecord.Enabled = True
cmdGotoLastRecord.Enabled = True
cmdAddRecord.Enabled = True
cmdCloseForm.Enabled = True
cmdEdit.Enabled = True
End Sub
In addition, I have compiled, decompiled and created the mde on two different workstations with the same results.
Any ideas are greatly appreciated.
Respectfully,
kwvh