4
Contributors
3
Replies
4
Views
8 Years
Discussion Span
Last Post by vb5prgrmr
0

I have create a database in ms access 2007 but i don't have to connect this database to vb6.0

please help me.........

I assume you are having trouble connecting to the database. There are multiple methods.

  1. RTFM (friendly manual of course)
  2. there are a number of DB-linking controls like the DBgrid, the DBcombo, ... you would enable them under Project - Components. Look for something like "Microsoft Data Bound ... Control"
  3. To just use Data from the DB and process that somewhere in your code, just use the database objects of VB:
    myDB = new ADODB.Connection 
    myDB.Provider = "Microsoft.Jet.OLEDB.4.0" 
    myDB.Open DB_File

    This would be the ADO variant

  4. Use the "classic" DB functions of VB.
    DIM myDB as Database 
    SET myDB = DBEngine.Workspaces(0).OpenDatabase(dbFile, False, False)
0

If you don't have to connect to the database to vb 6.0 then what is the problem ? Why have you posted here ?

0

Use the data form wiard with all possible combinations of form types with each of the code/class/control options.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.