Results 1 to 3 of 3

Thread: VB Database Problem

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2001
    Location
    Jamaica
    Posts
    0

    Red face VB Database Problem

    I am particularily new to VB and am studying from Master Moore. However, whenever I tried the database example that use the :
    Dim DB as Database
    or any other objects like this, I always get the following error code:

    Compile Error :
    User-defined type not defined.

    and DB as Database is highlighted.


    What cause this and HOW can I correct it so that I can get beyond this point?

    Thanks


  2. #2
    PowerPoster Beacon's Avatar
    Join Date
    Jan 2001
    Location
    Pub Floor
    Posts
    3,188
    You've got to use either the ado reference which i doubt he's talking about or dao reference in ya project!!

    A simple way:
    See that control in ya toolbox 2nd row from the bottom on the right?
    Thats the datacontrol draw that on your form and give it a shot now!

  3. #3
    Banned aknisely's Avatar
    Join Date
    Jul 2001
    Location
    America-lite (Canada)
    Posts
    160
    You have to make sure that the DAO/ADO object libraries are referenced properly...

    Project->References->Select the corresponding library (HINT: They both start with Microsoft)

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