#INCLUDE vfp2c.h SET LIBRARY TO vfp2c32.fll ADDITIVE INITVFP2C32(VFP2C_INIT_ODBC) && assuming lnCon is a valid connection handle ... lnRet = SQLEXECEX(lnCon,'SELECT someCol, someCol2, someDateTime FROM yourTable', 'cCursorName', '', 0, 'someDateTime D NULL') IF lnRet = -1 AERROREX('laError') DISPLAY MEMORY LIKE laError ENDIFIf you're using an older VFP version the only other solution is defining a "view" in a DBC where you can also specify the datatype.