+ Reply to Thread
Results 1 to 3 of 3

Cannot connect to Access database

  1. #1
    Registered User
    Join Date
    03-12-2007
    Posts
    4

    Cannot connect to Access database

    Hi all,

    I've used the following VBA code to
    Please Login or Register  to view this content.
    However, a compile error occurred.

    Compile error:
    User-defined type not defined

    How should I go about solving it ? Thanks in advance

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628
    Did you remember to activate the reference?

    Do so:
    1) From excel, open VB editor (usually shortcut is 'Alt' and 'F11')
    2) From the menu choose 'Tools', then 'References'
    3) From the list choose 'Microsoft DAO x.x Object Library'

    I think this may fix your problem.

    Regards,
    Antonio

  3. #3
    Registered User
    Join Date
    03-12-2007
    Posts
    4
    Thanks a mil !!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1