Link to home
Create AccountLog in
Avatar of Frank Freese
Frank FreeseFlag 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?
Avatar of Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1)
Flag of United States of America image

when you want to enter new records use  acNewRec

when you want  to save the record  use acSaveRecord
Avatar of 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
Avatar of Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1)
Flag of United States of America image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
thanks! as always I do appreciate you.