Hi

I want to fetch data from FoxPro 3.0 table based on criteria such as where Name="Dinesh Dhiman" and show it in textbox placed on vB form.

I've connected VB and FoxPro 3.0 in following manner...
vb Code:
  1. 'connect FoxPro
  2.     str = "Driver={Microsoft FoxPro VFP Driver (*.dbf)};SourceDB=d:\FPINV;SourceType=DBF;Exclusive=No;" & _
  3.     "Persist Security Info=False;BackgroundFetch=Yes;Collate=Machine;"
  4.  
  5.     If cn1.State = adStateClosed Then connect_fox
  6.     'If rsex.State = adStateClosed Then rsex.Open "exchdtl", cn1, adOpenDynamic, adLockOptimistic, adCmdTable
  7.     If rsex.State = adStateClosed Then rsex.Open "exchdtl", cn1, adOpenDynamic, adLockOptimistic, adCmdTable
Is there anybody who can help me.
Please let me know any other better way to connect and fetch data from FoxPro 3.0 tables.

I'm using VB6. Its very urgent.

Regards,
Dinesh