Hi, I try to use an Access database with Delphi.
When I try to create a particular query qith casting of a specified column with "EMPTY" initial value
in a Delphi DataSet the value is not real.
My query is like this for sample:
"SELECT CBool(False) AS myBoolValue, IIF(myTest1 = myTest2, 'A', IIF(myTest1 = myTest3, 'B', 'C')) AS myStringValue FROM myTable"
The result in Access is Ok but in Delphi the fields detail are ambiguos.
For myBoolValue the field definition is "SmallInt"
For myStringValue the field definition is "WideString" with a 255 lenght.
How I can retrieve a correct value like myBoolValue = TBooleanField and myStringValue = TStringField with length 1?
Thanks to all and sorry for my english.