I created ADOConnection, ADOQuery, and DataSource and connect to DBGrid.
Almost all columns are working ok, but when I swayed to the column with TIME type, some errors occurs:
could not convert variant of type (olestr) into type (double)
Multiple-step operation generated errors. Check each status value.
I read a lot of problems about this, but I didn't read about the problem with the TIME column. (My column is named TTime, and Date column TDate)
My query:
SELECT * from TVP;
I don't know if I have to group DATE and TIME columns or if someone has a way to show this TIME column.
Maybe a Delphi mistake?
I worked by converting the column to VARCHAR:
SELECT ID, TDATE, CONVERT(VARCHAR, TTIME) TTIME, PRODUCT, DESCRIPTION FROM TVP;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.