When using MFC DAO objects, the DAO database engine must first be initialized and then terminated before your application or DLL quits. Two functions, AfxDaoInit and AfxDaoTerm, perform these tasks.
DAO Database Engine Initialization and Termination
AfxDaoInit | Initializes the DAO database engine. |
AfxDaoTerm | Terminates the DAO database engine. |