from Tips: ODBC & Access database http://codeguru.earthweb.com/mfc_database/tips_odbc_access.shtmlDon't use CTime. To put it bluntly this class blows chuncks (IMHO). For ODBC use TIMESTAMP_STRUCT with the RFX_Date(), for DAO use COleDateTime, with DFX_DateTime(). The class wizard will always try and use CTime, you will have to change it by hand to the apporate type. CTime is limited to 1970 - 2038, and can crash your application if you try and give it an invalid date/time. or replace CTime with COleDateTime
Tips: ODBC & Access database
http://codeguru.earthweb.com/mfc_database/tips_odbc_access.shtmlDon't use CTime. To put it bluntly this class blows chuncks (IMHO). For ODBC use TIMESTAMP_STRUCT with the RFX_Date(), for DAO use COleDateTime, with DFX_DateTime(). The class wizard will always try and use CTime, you will have to change it by hand to the apporate type. CTime is limited to 1970 - 2038, and can crash your application if you try and give it an invalid date/time. or replace CTime with COleDateTime