Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

how to connect an access file or excel file with vb6? does latest vb version supports ms access 2007?

i have designed my project in vb6 and now i am trying to connect it to a database an access 2007 or access 2002-20032007 file

how to do it

how to use vis data wizard

to connect an access2007 or access 2002-2003 file with a form

it is showing

unrecognized database format number 3343

how to use data form wizard it is also showing

unrecognized database format for .mdb files

i also need a good website or any book on vb6 where form design and interconnection steps are shown

any good tutorial on html is also the need of the day

1 Answer

Relevance
  • 10 years ago
    Favorite Answer

    If you use 'Data1' control , then you can connect with MS Access or MS Excel Database by change

    'Connect' Property of 'Data1' control

    (By Default it will be MS Access, But you may change it to MS Excel)

    The problem with Data1 is that it support old version of MS Access.

    --------------------------------------------------------------------------------------------------------

    You can also use 'Adodc1' to connect with MS Access Database

    (Project->Component , Check Microsoft ADO Data Control (OLE DB), then Click on OK)

    Click on Property 'Connection' String of Property ADODC1 control,

    click on Buid Button

    from List of Providers select

    Microsoft Jet 4.0 OLE DB Provider

    ( if you want to connect MS Access Data base)

    But for MS Excel Database we need to Create a DSN ( Data source name)

    To Create DSN, you follow these

    ------------------------------------------------------------------------------------------------------

    Start -> Control Panel -> Administrative Tools -> Data Source(ODBC)

    Click on Add, Select 'river Do Microsoft MS Excel', Click on 'Finish' Button,

    a Dialog Box will appear, Give name on 'Data Source Name' Text Box as your Choice,

    click on Button 'Select Work Book'

    and Browse your Excel File , and give OK, Ok

    ============================================================

Still have questions? Get your answers by asking now.