If you use a bound form, you don't need any code. Access handles saving
records for you. For a form to be bound, it needs a table or preferably a
query name or SQL string in its RecordSource property. Then individual
controls on the form would be bound to columns from that RecordSource by
selecting a field name as each control's ControlSource.