Results 1 to 2 of 2
  1. #1
    jogunjobi is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2012
    Posts
    2

    Query Oracle table and local Access table with one sql statement

    Hello,



    I have a situation and I really need help with that. I have an access form that I use to query Oracle tables (via ODBC). Right now, I'm trying to run a SQL query against an Oracle table using values from a local Access table. I keep getting an "ORA-00942 error:table or view does not exist" basically telling me that the Local Access cannot be found. See SQL below.

    SELECT column1, column2, column3
    FROM OracleTable
    WHERE column1 IN (SELECT column4 from AccessTable WHERE column5 = 'text')

    Any help with the sql syntax will greatly appreciated. Thanks

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    You can successfully query each table individually?

    Can you build a query that joins the two tables on fields column1 and column4?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 0
    Last Post: 05-21-2012, 11:54 PM
  2. Creating a table with local and external data
    By Accessnoooob in forum Access
    Replies: 8
    Last Post: 06-25-2011, 07:36 PM
  3. Export table from Oracle to Microsoft Access 2007
    By dba in forum Import/Export Data
    Replies: 1
    Last Post: 02-25-2011, 07:05 AM
  4. Form fields export to local table
    By lupis in forum Forms
    Replies: 0
    Last Post: 03-23-2010, 02:38 PM
  5. Replies: 2
    Last Post: 10-27-2009, 07:09 AM

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