We help IT Professionals succeed at work.

Difference between acNewRec and acSaveRecord

Frank Freese
Frank Freese asked
on
767 Views
Last Modified: 2012-06-27
Can you explain the difference between acNewRec and acSaveRecord and when they should be used?
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2016

Commented:
when you want to enter new records use  acNewRec

when you want  to save the record  use acSaveRecord

Author

Commented:
As I understand this before a record can be created one must execute acNewRec to prepare the record for data.
Once the data has been entered acSaveRecord is executed.
Now, if a record is edited then you would execute acSaveRecord.
The reason for the question is that I had a form with two command buttons. cmdAdd executed the acNewRec and the second command button cmdSave also executed the acNewRecord, yet the data I created was saved? Why was the data saved? I do believe I need to changed cmdSave from acNeeRec to acSave.
CERTIFIED EXPERT
Top Expert 2016
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
thanks! as always I do appreciate you.
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.