Jenny said:
I am creating a form where i want to bring
up fields and make changes to them. Then
I want to press on a save button and have
the changes saved into the access table.
How do I do that?!
Visit Office Online,
http://office.microsoft.com, and take a look at the
Access online training. Or, buy a simple self-study, such as Microsoft
Access Step by Step, read it, and do the exercises.
If you put the name of a Table or Query in the RecordSource property of a
Form, and the name of Fields in the Control Source of Controls (e.g., Text
Boxes, Combo Boxes, etc.) on the Form, changes to those Fields will
automatically be updated when you (1) move off that Record to another
Record, (2) move the focus to a Subform Control on the Form, or (3) Close
the Form.
If you want the user to choose whether to save, in the Form's Before Update
event, ask the User if they want to Save, and, if they choose No, then set
the Cancel argument of the BeforeUpdate event's Sub Procedure to True before
exiting. That is, rather than the user explicitly Saving, the usual approach
is to allow them to disallow the Save.
Larry Linson
Microsoft Access MVP