I can help you with DAO, but I don't know ADO. Here are the basic steps for DAO:
1. Using Tools|References on the menu (only visible when you are in a code module), add a reference to the Microsoft DAO object library if it's not there already. (Help file topic: Set References to Type Libraries.)
2. Using variables of type Database and Recordset, open a recordset over the table to be updated. Add the row to the table. Close the recordset, and set the variables to Nothing. (Help file topics: Database object, Recordset object, OpenRecordset method, AddNew method, Update method, Close method. Be sure to look at the example code.)
3. Call the list box's Requery method. (Help file topic: Requery method of ListBox control.)
If coding is new to you, the Northwind and Solutions databases (the latter is in the Developer's Edition of Access/Office) will be very helpful. Rick Sprague
Want the best answers? See faq181-2886
To write a program from scratch, first create the universe. - Paraphrased from Albert Einstein