Avatar of Frank Freese
Frank Freese
Flag for United States of America asked on

Difference between acNewRec and acSaveRecord

Can you explain the difference between acNewRec and acSaveRecord and when they should be used?
Microsoft Access

Avatar of undefined
Last Comment
Frank Freese

8/22/2022 - Mon
Rey Obrero (Capricorn1)

when you want to enter new records use  acNewRec

when you want  to save the record  use acSaveRecord
Frank Freese

ASKER
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.
ASKER CERTIFIED SOLUTION
Rey Obrero (Capricorn1)

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Frank Freese

ASKER
thanks! as always I do appreciate you.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23