Results 1 to 2 of 2

Thread: Use FoxPro 3.0 Tables In VB 6

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2008
    Posts
    0

    Use FoxPro 3.0 Tables In VB 6

    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

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Use FoxPro 3.0 Tables In VB 6

    Welcome to the forums.

    This sounds like a simple SQL SELECT query.

    Have you experience with SQL?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width