Results 1 to 6 of 6

Thread: Access97 doesnt recognize "as database" in dim

  1. #1
    Join Date
    Sep 2003
    Posts
    3

    Access97 doesnt recognize "as database" in dim

    I have selected Data Access Object in the References dialog box.

    Dim dbs As Database gives "Compile Error: User defined type not defined."

  2. #2
    Join Date
    Jun 2003
    Location
    Bloomington, IN, USA
    Posts
    116
    dim dbs as dao.database maybe?

  3. #3
    Join Date
    Sep 2003
    Posts
    3
    I TRIED THAT AS WELL WITHOUT SUCCESS.

  4. #4
    Join Date
    Jun 2003
    Location
    Bloomington, IN, USA
    Posts
    116
    did you check your References in VBA? is it possible you forgot to add in the proper one, or that the link possibly got broken? I believe it is covered by the Microsoft DAO 3.6 Object Library reference, though y ou might have a different version from 3.6. That would be my next guess.

    If its not that, than I dont know, and maybe one of the more knowledgable people should pipe in.

    Brandon

  5. #5
    Join Date
    Sep 2003
    Posts
    3
    That does it. You do good work! Thanks.

  6. #6
    Join Date
    Jun 2003
    Location
    Bloomington, IN, USA
    Posts
    116
    not a problem. It's usually something simple like that.

Posting Permissions

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