Results 1 to 7 of 7

Thread: I need some help...

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2001
    Location
    Virginia, USA
    Posts
    6

    Exclamation

    Alright...
    I found a database demo at vbsquare.com.
    In the General Declarations it states

    Dim DB As Database
    Dime RS As RecordSet

    Well... When I transfered that code to my existing project that I wanted to add the database too, it gave me an error. Appearantly it wont let me use 'Database' as an option.

    But it will let me use 'Database' as an option in the demo I downloaded. What do I have to do???

  2. #2
    Fanatic Member ExtremePimpness's Avatar
    Join Date
    Jan 2001
    Location
    Indianapolis, Indana - USA
    Posts
    550
    I'm not completly sure on this one but you might have to use a "type" statement

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2001
    Location
    Virginia, USA
    Posts
    6

    Aight...

    Well...
    Yeah, I have to use a 'type' statement...

    What kinda 'type' statement should I use???


    Dim DB As Database


    That doesn't seem to work with my program, but it does with the program I downloaded from vbsquare.com

  4. #4
    Fanatic Member ExtremePimpness's Avatar
    Join Date
    Jan 2001
    Location
    Indianapolis, Indana - USA
    Posts
    550

    If the other example works...

    It should be contained in the other program if that prograam works correctly. other than that i'm not sure.

  5. #5
    Member
    Join Date
    Jul 1999
    Posts
    42
    To use the DAO database objects your project must have a reference to the file containing these DAO components. Use the project menu to open the reference (Menu Project > sub menu References) and look for the DAO components called:

    Microsoft DAO 3.6 object library

    (or version 2.5 or 3.51 etc.)
    Select the the component and click Ok. Now your program can use the DAO objects like Database and Recordset.

  6. #6

    Thread Starter
    New Member
    Join Date
    Feb 2001
    Location
    Virginia, USA
    Posts
    6

    Unhappy I cant find that...

    I cant find the Microsoft DAO object library...

    I have the Microsoft ADO Data Control 6.0 in my components list.

    What can I do???

  7. #7
    Lively Member
    Join Date
    Jul 1999
    Posts
    99
    make sure you selected the References and not the Components menu option.

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