CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 1999
    Posts
    37

    dim db as database ??



    I tried to set "dim db as database" and it told me that database was an undefined variable. Anyone have any ideas why VB isn't recognizing it?


    thanks

  2. #2
    Join Date
    Apr 1999
    Location
    Rotterdam, Netherlands
    Posts
    278

    Re: dim db as database ??



    Yep.. actually its kind of easy if you know the answer.. Include DAO???.dll in your project ( Menu Project - References - probably MSDAO350.dll with VB6. Normally it's in the list)

    That's the dll you need to have access to databases.


    Hope it helps!


    Crazy D

  3. #3
    Join Date
    Dec 1998
    Posts
    2

    Re: dim db as database ??



    From the Visual Basic Project menu, select reference menu item and set a reference to Microsoft DAO 3.5(or the version you have) library. Then you won't get the error.

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