Locate and ADO wont work
From: Stephan Blind (stephan.blind_at_gmx.de)
Date: 08/31/04
- Next message: J French: "Re: Recursive links and units"
- Previous message: Craig: "Recursive links and units"
- Next in thread: Maarten Wiltink: "Re: Locate and ADO wont work"
- Reply: Maarten Wiltink: "Re: Locate and ADO wont work"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 31 Aug 2004 03:23:35 -0700
Hi i am so desparated....
worked for some years with D5 and BDE...all seemed to be good.
Now i toggle a project from bde to ado (with an access 2003).
After recognizing that i cant set indexes....i threw away the good old
findkey method...now using LOCATE.
All works fine....but when i have to find a row using more than one
column for Locate there is an exception wrong type of arguments
In the Table the field PID and LNR are together primarykey (both long
int)
I tried these versions
==================================================
if KAAdoTable1.Seek_Nearest ( [1,2] ) then
==================================================
if KAAdoTable1.ExecSQLString ( 'select * from Test4 where PID=1 and
Lnr=2' )
==================================================
KAAdoTable1.EditKey();
KAAdoTable1.FieldByName ( 'PID' ).AsInteger := i1;
KAAdoTable1.FieldByName ( 'Lnr' ).AsInteger := i2;
if KAAdoTable1.GotoKey() then
==================================================
suche := VarArrayOf ( [1,1] );
if KAAdoTable1.Locate ( 'PID;Lnr', suche, [] ) then
==================================================
all versions show the same error.....
would be glad i anyone in this small world could help me
stephan
- Next message: J French: "Re: Recursive links and units"
- Previous message: Craig: "Recursive links and units"
- Next in thread: Maarten Wiltink: "Re: Locate and ADO wont work"
- Reply: Maarten Wiltink: "Re: Locate and ADO wont work"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|