NULL parameter in ADOCommand::CreateParameter

Hi all

I've got a stored procedure which gets called from the code with set of parameters. One of the expected arguments in of DATE type. The value for this argument comes from a COleDateTime object. The date in COleDateTime can be invalid as the DATE field in table is optional. Does anyone know how to pass a NULL to ADOCommand::CreateParameter when the date is invalid? Currently passing the invalid value from COleDateTime causes the 1899 date being inserted in table.
I've tried to pass an argument of VT_NULL type, but I get invalid SQL error reply from oracle.

Many thanks for any clues
Topic archived. No new replies allowed.