Results 1 to 3 of 3
  1. #1
    Join Date
    May 2002
    Posts
    395

    Unanswered: Why couldn't I declare Database as a data type?

    Why couldn't I declare Database as a data type?
    I have a compiled error:
    "User-defined type not defined"

    Dim dbs As Database

    What is wrong with this code?


  2. #2
    Join Date
    May 2002
    Location
    Atlanta, GA
    Posts
    117
    Hey Alice,

    While in the Visual Basic Window goto Tools, References and then scroll down to Microsoft DAO 3.6 Object Library, place a check mark and then restart access just to make sure the reference is loaded.

    Thats it!!!

    Kal

  3. #3
    Join Date
    May 2002
    Posts
    395

    Thanks

    Thanks!
    It's nice hear from you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •