Results 1 to 5 of 5
  1. #1
    billybeer is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jun 2015
    Posts
    27

    Stop query tab from opening


    I have a query that shows its results in a subform on the main form. When I run the query the results show in the subform but the query also opens a new tab with the results. I want the results to show only in the subform and not open a tab with the results. How do I do this.

    Thanks.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Don't run the query.
    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
    billybeer is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jun 2015
    Posts
    27
    How do I get the query results to show in the subform without running the query?

  4. #4
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Use the query as the record source for the subform.

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    SELECT queries don't have to be 'run' if used as the RecordSource for form or report. Opening the form or report 'runs' the query.

    If the query is used directly as the SourceObject of subform/subreport container, again, just open the main form and the subform container and its SourceObject query will 'run'.
    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. Need Query to stop grouping by Date!
    By Elwood07 in forum Queries
    Replies: 6
    Last Post: 07-10-2015, 01:27 PM
  2. Stop query on null value.
    By BatmanMR287 in forum Access
    Replies: 4
    Last Post: 01-08-2015, 06:09 PM
  3. Replies: 3
    Last Post: 02-20-2012, 09:39 AM
  4. openning database on another computer
    By rjriggins11 in forum Access
    Replies: 5
    Last Post: 02-22-2011, 02:25 PM
  5. Replies: 2
    Last Post: 11-29-2009, 12:00 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