CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Database

  1. #1
    Join Date
    Nov 2000
    Location
    IL, U.S.A.
    Posts
    218

    Database

    I have VB6 and I have made a data base in Lotus Approach. Can I implement the data base into my VB progaram. If so, then is there something I have to set in the components or is there something else I have to set?


  2. #2
    Join Date
    Apr 1999
    Location
    VA BEACH
    Posts
    467

    Re: Database

    Not familiar with LOTUS but if you can use an ODBC driver with LOTUS then you can use it in VB. You have to configure a ODBC dsn and use that as the access to your database.

    If you can be more specific as to what you are using the database with ( ADO, DAO, etc...) you can probably get an example of how to use it.



    Jim Hewitt
    Software Developer
    Liberty Tax Service
    www.LibertyTax.com

  3. #3
    Join Date
    Nov 2000
    Location
    IL, U.S.A.
    Posts
    218

    Re: Database

    It does not make a difference ADO or DAO.


  4. #4
    Join Date
    Apr 1999
    Location
    VA BEACH
    Posts
    467

    Re: Database



    'ado example
    Dim conn as ADODB.Connection
    Dim rs as ADODB.Connection

    set conn = new ADODB.Connection

    conn.Open "DSN=YOURDSNNAME"
    rs.Open "SomeTable", conn, adOpenDynamic, adLockOptimistic, adCmdTable





    that will open a databbase and a recordset. For more detail I would suggest reading the online help for ADO, as it is complicated.



    Jim Hewitt
    Software Developer
    Liberty Tax Service
    www.LibertyTax.com

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

Featured