Board index » delphi » help me ( Field index out of range )

help me ( Field index out of range )

master table                            detail table

COD     PRIMARY KEY          COD      ----
                                                                      | -

Quote
>PRIMARY KEY

                                                  NUM      ----

i,m  using  access 97 with ODBC Driver  my relationship is

master  (1)  ------------- (oo)  detail

but when i execute

Datamodule.TBDetail.IndexName := ' MasterTableDetailTable'   ;
Datamodule.TBDetail.FindKey ( [ DataModule.TBMasterCOD.Value ,
EditNUM.Text ] )   ;

ocurr error :

field index out of range

thanks...

 

Re:help me ( Field index out of range )


Quote
>Datamodule.TBDetail.FindKey ( [ DataModule.TBMasterCOD.Value ,
>EditNUM.Text ] )   ;

>ocurr error :

>field index out of range

Are you sure that the Active index of the table you are searching is the index
for the field you are trying to search on?

--
Brian Bushay (TeamB)
Bbus...@NMPLS.com

Other Threads