Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2004
    Posts
    15

    Unanswered: db object creating.

    Hi
    I'm very new to access and my question is probably a stupid one:
    When I copy and paste sample code from access help file that has a line 'Dim db As Database' I get a compiler error 'User-defined type not defined'. Also 'Database' is not in the list that pops-up after 'As'. What am I missing here? Almost all of the help sample code starts with this line.

  2. #2
    Join Date
    Jan 2003
    Location
    Rockville, MD
    Posts
    179
    You're missing the Microsoft DAO 3.6 Object Library in your list of references.

    To add it:
    From a code window choose Tools, References
    Scroll down to find the DAO library, and check it.
    Click "ok".

Posting Permissions

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