+ Reply to Thread
Results 1 to 5 of 5

Automation error when opening Access database

  1. #1
    Registered User
    Join Date
    04-23-2010
    Location
    Oregon
    MS-Off Ver
    Excel 2003
    Posts
    20

    Automation error when opening Access database

    This runs but returns an "run time" and "automation error" I dont know why.

    Thanks in advance for help

    Please Login or Register  to view this content.
    Last edited by GWB; 04-26-2010 at 05:06 PM.

  2. #2
    Registered User
    Join Date
    04-23-2010
    Location
    Oregon
    MS-Off Ver
    Excel 2003
    Posts
    20

    re: Automation error when opening Access database

    After running debug it shows at this line:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-23-2010
    Location
    Oregon
    MS-Off Ver
    Excel 2003
    Posts
    20

    re: Automation error when opening Access database

    Well, at this line: If Not (.EOF And .BOF) Then

    I get: error 3709 Application or object defined error

  4. #4
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Automation error when opening Access database

    Your SQL string is incomplete. You have not specified a FROM clause.
    Remember what the dormouse said
    Feed your head

  5. #5
    Registered User
    Join Date
    04-23-2010
    Location
    Oregon
    MS-Off Ver
    Excel 2003
    Posts
    20

    Re: Automation error when opening Access database

    Thank you. I had deleted most of the query to try and troubleshoot it, ended up with:

    Please Login or Register  to view this content.
    I didnt know I needed to add "strQuery = strQuery &" to every arguement

+ 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