G
Guest
I have a Command button called "AddNew" on a form which allows a user to add
a new record. I used: DoCmd.RunCommand acCmdDataEntry in the AddNew
Subfunction. However, everytime when I click "AddNew" button. A error message
pops up saying: Run time error "2046". The command or action 'DataEntry'
isn't available.
Does anyone know why this happened? I checked the form property settings, I
have AllowEdits: Yes; AllowDeletions: Yes; AllowAdditions: Yes; DataEntry:
No. Even though I change DataEntry setting to "Yes", I still got the same
error message. Would someone please let me know why? What did I wrong?
THanks in advance?
Ally
a new record. I used: DoCmd.RunCommand acCmdDataEntry in the AddNew
Subfunction. However, everytime when I click "AddNew" button. A error message
pops up saying: Run time error "2046". The command or action 'DataEntry'
isn't available.
Does anyone know why this happened? I checked the form property settings, I
have AllowEdits: Yes; AllowDeletions: Yes; AllowAdditions: Yes; DataEntry:
No. Even though I change DataEntry setting to "Yes", I still got the same
error message. Would someone please let me know why? What did I wrong?
THanks in advance?
Ally