Results 1 to 6 of 6
  1. #1
    Fixer is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2015
    Posts
    7

    How do I use an SQL filter on incoming data BEFORE it gets into Access


    When I pull in an ODBC data source (using the button in access), it doesn't let me filter it before it brings it in. It is bringing in EVERYTHING which is not what I wanted (these dbases are HUGE).

    Is there any way to run an actual SQL QUERY and the results end up in a table?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    What is the backend?

    An SQL INSERT action will write records to table but I don't see how that will help you.
    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.

  3. #3
    Fixer is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2015
    Posts
    7
    Backend? I am not familiar with the terminology. Self-taught.

    I clicked on the External Data tab and selected the ODBC Database button.

    I figured that I figure out how to do it by hand before I figure out how to do it in Visual Basic.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    If you are connecting to data via ODBC then this is a split design. Backend has data tables and frontend has queries, forms, reports, code. The backend can be Access, SQL, Oracle, etc.
    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.

  5. #5
    Fixer is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2015
    Posts
    7
    Then the 'backed' (where the data is stored) is an Oracle server. I (presently) import it into Excel using SQL queries (using WHERE and HAVING to only pull what I want).

    Is Access built so it cannot use SQL queries on what it imports? I don't want to download the entire database and then apply filters. I can use VBA if I have to to run it otherwise, but I am unfamiliar with the syntax for VBA in Access.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    My only experience with Oracle and SQL as backend database is to link tables from Access. But I understand that 'views' (filtered datasets) can be built in SQL (and maybe Oracle) backend and Access can link to those same as linking to tables.
    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: 4
    Last Post: 04-25-2015, 09:27 AM
  2. Dealing With Incoming Null values - Variants
    By CementCarver in forum Programming
    Replies: 5
    Last Post: 09-04-2013, 01:53 PM
  3. Integrating Incoming Email into Access DB
    By andytreusch in forum Forms
    Replies: 3
    Last Post: 08-14-2013, 06:14 PM
  4. How do I convert an incoming object to binary?
    By techneophyte in forum Programming
    Replies: 1
    Last Post: 07-28-2010, 10:42 AM
  5. Replies: 1
    Last Post: 05-20-2009, 09:09 AM

Tags for this Thread

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