Consulting

Results 1 to 4 of 4

Thread: OLE action warning message

  1. #1
    VBAX Newbie
    Joined
    Aug 2004
    Posts
    3
    Location

    OLE action warning message

    Hi All,

    I regularly run a routine from Excel 2002 to Access 2000 to run a macro (I know I should use VBA but I don't have the time code all of the 37 macros that we have) that runs some queries and reports and outputs the data into an Excel file, code below.

    Sub GetData()
    DatabaseName$ = "C:\Credit Database.mdb"
    Set acApp = CreateObject("Access.Application")
    acApp.Visible = True
    acApp.OpenCurrentDatabase (DatabaseName$)
    acApp.DoCmd.RunMacro "Mac-MyMacroName"
    End Sub
    The problem I have is that sometimes the process can take quite a long time to finish. After about a minute in Excel, I get the following message.
    "Microsoft Excel is waiting for another application to complete an OLE action."
    And I continue to get the message then every 10 seconds or so.

    I've tried using

    Application.ODBCTimeout = 0
    But I still get the error message. I also know that in Access, under Options, on the Advanced tab there is an option for OLE/DDE timeout, but I can't find an equivalent in Excel.

    Can anyone help?

    Many thanks in advance.

  2. #2
    VBAX Regular
    Joined
    May 2004
    Location
    Sydney, Australia
    Posts
    36
    Location
    Hi,

    The reply from Rob Bovey in this newsgroup thread: http://groups.google.com.au/groups?h...tion%26hl%3Den should help answer your question.


    Regards,
    Daniel

  3. #3
    VBAX Newbie
    Joined
    Aug 2004
    Posts
    3
    Location
    Thanks Daniel, I can't access the site at work, but I'll try at home tonight and let you know how I get on.

  4. #4
    VBAX Newbie
    Joined
    Aug 2004
    Posts
    3
    Location
    Daniel,

    You are a complete star, you don't know the relief that has brought me, thank you so much.

Posting Permissions

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