Why not just bind your table to your form? Then you don't need all the coding behind the scenes.
To do this, just create a new form, and follow the wizard. Or put a table name in your form recordsource, and drag and drop field names from the field list box.
Hope this helps,
Peter De Baets...