+ Reply to Thread
Results 1 to 3 of 3

ODBC Pivots error handling

Hybrid View

  1. #1
    Registered User
    Join Date
    10-30-2003
    Posts
    10

    ODBC Pivots error handling

    Hello all, I have searched and searched but cannot find an answer to the following.

    I have a number of pivots connecting to an Oracle db to perform some queries. These work fine. The problem comes when I get a "would you like to replace the contents of cell......etc." message. Basically I always want to do that but can't figure out how to avoid the prompt which is an irritating one as it affects about 10 spreadsheets.

    If I application.ScreenUpdating = False, it simply doesn't prompt me for the ODBC connection password and if I pass it in after the refresh it doesn't seem to do anything.

    In addition I've tried clearing the contents and deleting of any alien formatting from the offending spaces but to no avail.

    Ideally, I'd like to trap that specific error message but since I don't actually think it is an error message, (and I've searched for it too but can't find it) I can't figure out how to do it.

    Is it possible and if so, how?

    thanks in advance

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: ODBC Pivots error handling

    What about disabling Alerts ?

    Application.DisplayAlerts = False
    ...code...
    Application.DisplayAlerts = True
    (technically does not require reset but good habit to reset)

  3. #3
    Registered User
    Join Date
    10-30-2003
    Posts
    10

    Re: ODBC Pivots error handling

    I realise that my English was incomprehensible now so I guess you missed it but...basically I can't do that because if I do, the ODBC prompt doesn't appear which means I can't connect to the database which means the refresh doesn't happen and I'm back to square 1, (unfortunately).

    My hope is - though this is a slim one - that that specific message is trappable but I haven't a clue as to what the name of it is, or indeed, whether it has one.

+ 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