This example queries for a first and last name and adds them as a new record to the Employee database.
See How to Build the DAO Method Samples.
On the MSDN Library discIf you have installed the DAO SDK, see Samples\dbdaoInstallDirectory\DAOSDK\SAMPLES\AddNew.cpp.