Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228

    Multiple query criteria

    Is it possible for results for two separate query's to be displayed on one form? I have a form for jobs that need attention. Currently it shows jobs that have the start sate before
    today and are not 'complete'. These either have to be rescheduled or be updated to say complete.

    I want to know now, out of the complete ones, which have got all documentation. I can easily make this query and put it on a sub form. I was wondering if I can combine the results of two separate querys. So anything needing attention is in one place.



    FAILING THAT... Is it possible to have dynamic sub forms? I could have two sub forms which auto adjust size depending on the amount of results in them, So if it had one it would be small and If it had many it would expand.

    As always, Open to suggestions.

    Andy,

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    So, you want to combine your two queries into one?

    One way is with a Union Query (see: http://www.fabalou.com/access/queries/unionquery.asp). Note though that kind of query is not updateable.

    If you want to try to combine both into a single query that is updateable, please post the SQL code for each of your two queries here.

  3. #3
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    Okay, When I have the second query made ill do that.

  4. #4
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    You could:
    1) have 2 sub forms on the form
    2) have a tab control and have a separate sub form on each tab
    3) have two list boxes on the form and have the double click event open the correct form for editing the data.

    Option 3 would be my favorite.... you can see the data and still be able to edit it.

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    Forms do not grow or shrink - that's why they have scroll bars.
    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.

  6. #6
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    Thanks for your suggestion ssanfu. I didn't think of using a list box in this case.

    june -thanks for the information. I wouldn't assume they couldn't just because they have scroll bars though.

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

Similar Threads

  1. Replies: 2
    Last Post: 04-02-2015, 12:45 PM
  2. Replies: 3
    Last Post: 10-08-2014, 10:28 AM
  3. Replies: 2
    Last Post: 04-10-2013, 03:54 PM
  4. Replies: 7
    Last Post: 01-02-2013, 11:23 PM
  5. Replies: 1
    Last Post: 07-13-2011, 11:00 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