We are having an issue with Delphi 6.
Our data is on an AS400 and we have a table that has fields defined as a datetime.
In delphi we created a new application and drop down the TADOConnection and a TADOQuery.
In the TADOQuery we select the datetime field and open the TADOQuery and it opens just fine.
When we try to work with the field, ie:
if ADOQuery1fldDATE.AsDateTime = StrToDate('01/01/0001') then (or)
if ADOQuery1fldDATE.Value = StrToDate('01/01/0001') then
we have issues when the value is '01/01/001', delphi blows up with an EOleException, Multistep operation generated errors.
Im wondering if anyone would know how to fix this so '01/01/0001' would be a valid date since it really is valid on the AS400, just not in delphi.
Thanks for any help
-jason
Our data is on an AS400 and we have a table that has fields defined as a datetime.
In delphi we created a new application and drop down the TADOConnection and a TADOQuery.
In the TADOQuery we select the datetime field and open the TADOQuery and it opens just fine.
When we try to work with the field, ie:
if ADOQuery1fldDATE.AsDateTime = StrToDate('01/01/0001') then (or)
if ADOQuery1fldDATE.Value = StrToDate('01/01/0001') then
we have issues when the value is '01/01/001', delphi blows up with an EOleException, Multistep operation generated errors.
Im wondering if anyone would know how to fix this so '01/01/0001' would be a valid date since it really is valid on the AS400, just not in delphi.
Thanks for any help
-jason