Type Mismatch in TMSQuery
Posted: Fri 20 Jan 2012 10:28
I get the following error upon opening a specific query:
qrInvoice Type mismatch for field confirmationDate, expecting: Date
actual: Widestring
Note. The error only occurs on some machines, and I cannot tell the difference on said machines.
I have run the application on Windows 7, and on another Windows 7, with same version number, same level (professional), same updates installed, it doesnt work.
This query is the only one in the entire application with the error.
This query is also the only query where I have done the following:
On the TMSQuery object at designtim add all fields in the fields editor.
I have added a lookup field also to look up something from another dataset the lookupfield is NOT the field in question.
The reason I added the fields in this manner, is because I have hooked it up to a TdbAdvGrid from TMS Software and I want a combobox in the grid.
I have checked the database. The field is defined as DATE, I have checked the generated fields in Delphi XE2, its defined as qrinvoice_confirmationdate : TDateField.
Do you have any suggestions?
oh, I cannot remember how to check which version SDAC we have
Thanks in advance
Kind regards
Jens Fudge
qrInvoice Type mismatch for field confirmationDate, expecting: Date
actual: Widestring
Note. The error only occurs on some machines, and I cannot tell the difference on said machines.
I have run the application on Windows 7, and on another Windows 7, with same version number, same level (professional), same updates installed, it doesnt work.
This query is the only one in the entire application with the error.
This query is also the only query where I have done the following:
On the TMSQuery object at designtim add all fields in the fields editor.
I have added a lookup field also to look up something from another dataset the lookupfield is NOT the field in question.
The reason I added the fields in this manner, is because I have hooked it up to a TdbAdvGrid from TMS Software and I want a combobox in the grid.
I have checked the database. The field is defined as DATE, I have checked the generated fields in Delphi XE2, its defined as qrinvoice_confirmationdate : TDateField.
Do you have any suggestions?
oh, I cannot remember how to check which version SDAC we have
Thanks in advance
Kind regards
Jens Fudge