Results 1 to 8 of 8

Thread: Controlling Visual FoxPro 6 with VB6

  1. #1

    Thread Starter
    Addicted Member bulletrick's Avatar
    Join Date
    Jul 2005
    Location
    Philippines
    Posts
    248

    Question Controlling Visual FoxPro 6 with VB6

    Ahoy!

    I just want to ask, is it possible to control a Visual FoxPro 6 database using Visual Basic 6? Like adding, deleting, and/or editing records in a VFP database.

    I’m working on an identification system (barcode, biometrics, etc.) and I wanted to have a VB front-end with a VFP database back-end.

    Thanks a lot!

    Ric

  2. #2
    Addicted Member
    Join Date
    Jun 2005
    Posts
    139

    Re: Controlling Visual FoxPro 6 with VB6

    Yes you can using ADO.

  3. #3
    Software Carpenter dee-u's Avatar
    Join Date
    Feb 2005
    Location
    Pinas
    Posts
    11,127

    Re: Controlling Visual FoxPro 6 with VB6

    Welcome to VBF!

    Yes, VB6.0 could handle Foxpro database also, do you know how to use sql statements?
    Regards,


    As a gesture of gratitude please consider rating helpful posts. c",)

    Some stuffs: Mouse Hotkey | Compress file using SQL Server! | WPF - Rounded Combobox | WPF - Notify Icon and Balloon | NetVerser - a WPF chatting system

  4. #4
    New Member
    Join Date
    Dec 2006
    Posts
    3

    Re: Controlling Visual FoxPro 6 with VB6

    Hi,

    Can you give me an example on how to use VFP database in VB6? It would be a great help for me. Thanks!

  5. #5
    VB Guru ganeshmoorthy's Avatar
    Join Date
    Dec 2005
    Location
    Sharjah, United Arab Emirates
    Posts
    3,031

    Re: Controlling Visual FoxPro 6 with VB6

    this is one of the method to open vfp database
    VB Code:
    1. Dim cnn As New ADODB.Connection
    2.       cnn.Open "Provider=vfpoledb;" & "Data Source=.\DatabaseName.dbc;"
    If an answer to your question has been helpful, then please, Rate it!

    Have done Projects in Access and Member management systems using BioMetric devices, Smart cards and BarCodes.


  6. #6
    New Member
    Join Date
    Dec 2006
    Posts
    3

    Re: Controlling Visual FoxPro 6 with VB6

    Thanks...I add Adodc1 and got no errors found but how can I open the database and see it using dbgrid? or any component to be used for viewing and editing the database?

    Thanks for your time and support.

  7. #7
    VB Guru ganeshmoorthy's Avatar
    Join Date
    Dec 2005
    Location
    Sharjah, United Arab Emirates
    Posts
    3,031

    Re: Controlling Visual FoxPro 6 with VB6

    you need to bind the datagrid (not dbgrid) to the adodc1 by setting the datagrid's properties.
    DataSource = Adodc1 and right click on the datagrid, select Retrieve Fields option from the popup menu.
    If an answer to your question has been helpful, then please, Rate it!

    Have done Projects in Access and Member management systems using BioMetric devices, Smart cards and BarCodes.


  8. #8
    New Member
    Join Date
    Dec 2006
    Posts
    3

    Re: Controlling Visual FoxPro 6 with VB6

    hi there,

    Thanks for your time..can I send you the file? I really can't do it. Maybe I'm not that good in vb. please help.

    Thanks.

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