I test with both version and I have the same problem:
"invalida Variant Type Conversion"
This happend to execute the follow code:
dmN.tNicOcupa.SQL.Clear;
dmN.tNicOcupa.SQL.Text := 'Select Distinct Contrato From NicOcupa Order By Contrato';
dmN.tNicOcupa.Open;
Delphi 5
Windows Vista Bussines (new)
MyDac 5.50.34 and 5.50.35 (new)
Until I was worked with the follow enviroment all was fine
Delphi 5
Windows XP
MyDac 5.20
You Can help my, Thanks
Problem With new version 5.50.34 and 5.50.35
-
swierzbicki
- Posts: 451
- Joined: Wed 19 Jan 2005 09:59
-
almosqueda
- Posts: 2
- Joined: Tue 17 Jun 2008 02:09
Solution Ready!!!!
Original Code that was worked for years until new version:
//Table slave from tOcupa
// Text of Query: Select * from Ocupa
tOcupaTmp.Open;
dmP.tOcupa.SQL.Clear;
dmP.tOcupa.SQL.Text := 'Select Distinct Contrato From Ocupa Order By Contrato';
dmP.tOcupa.Open; //Table master from tOcupaTmp
The solution was change order to open tables:
dmP.tOcupa.SQL.Clear;
dmP.tOcupa.SQL.Text := 'Select Distinct Contrato From Ocupa Order By Contrato';
dmP.tOcupa.Open; //Table master from tOcupaTmp
//Table slave from tOcupa
// Text of Query: Select * from Ocupa
tOcupaTmp.Open;
Thanks for all
//Table slave from tOcupa
// Text of Query: Select * from Ocupa
tOcupaTmp.Open;
dmP.tOcupa.SQL.Clear;
dmP.tOcupa.SQL.Text := 'Select Distinct Contrato From Ocupa Order By Contrato';
dmP.tOcupa.Open; //Table master from tOcupaTmp
The solution was change order to open tables:
dmP.tOcupa.SQL.Clear;
dmP.tOcupa.SQL.Text := 'Select Distinct Contrato From Ocupa Order By Contrato';
dmP.tOcupa.Open; //Table master from tOcupaTmp
//Table slave from tOcupa
// Text of Query: Select * from Ocupa
tOcupaTmp.Open;
Thanks for all