Results 1 to 2 of 2
  1. #1
    MFriend is offline Novice
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Jun 2010
    Posts
    22

    Issue with Pass-Through Queries

    Hi Folks:



    I am having an 'issue' with using pass-through queries on Access 2010.

    Setup: Using linked tables with Access linked to Oracle XE. Both are installed on the same local machine.

    I am able to run "Regular" queries with no problems. If I attempt to set up the query to be a 'Pass-Through' query, the query and the form that is using it as its source become unusable because Access will CONSTANTLY pop up a box asking for the DSN information. The DSN information is correct (and I tried file, system, user DSN setups that connect successfully). Once I select which ODBC DSN info I want to use, then I must re-enter my password. The moment I do anything that requires Access to extract data from the Oracle XE database, I get the popup DSN request and then have to re-enter my password.

    For some reason it seems anytime the query with the Pass-Through SQL is accessed, I have to select the DSN again (doesn't matter if it is Machine or file DSN) and re-enter my password.

    If I take the query and change it to a regular query and not Pass-Through, it works fine (so the form is set correctly to use the Query as its source).

    Does anyone know why this would be happening?

    Thanks,
    Matthew

    P.S. Does using a Pass-Through Query cause the connection between Access and Oracle to terminate after each query... it seems so. If so, is there a way to keep the connection 'alive'?

  2. #2
    MFriend is offline Novice
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Jun 2010
    Posts
    22
    Just a little follow up:

    I was able to accomplish what I needed to by creating a view in Oracle and then changing the source from the query I had created to using the view as the source.

    I still am not able to use a saved query though as it seems it constantly causes a disconnection from the Oracle database (at least that seems to be the issue with having to re-enter my password every 5 seconds or so).

Please reply to this thread with any new information or opinions.

Similar Threads

  1. pass value from one form to another
    By ManC in forum Forms
    Replies: 7
    Last Post: 11-25-2011, 09:59 AM
  2. Pass Value to Form
    By JohnBoy in forum Programming
    Replies: 5
    Last Post: 06-06-2010, 11:26 AM
  3. how to pass pk to subform
    By ahmed.gomaa in forum Forms
    Replies: 9
    Last Post: 03-21-2010, 10:03 AM
  4. Pass a value from a form to another
    By cwwaicw311 in forum Forms
    Replies: 3
    Last Post: 03-16-2010, 12:42 AM
  5. Replies: 0
    Last Post: 03-19-2006, 11:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums