Results 1 to 2 of 2
  1. #1
    McShaman is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2014
    Posts
    2

    Question Dynamic query in subform

    I am building a form for users to view and filter records.

    In the top half of the form I have a heap of text box fields to that allow the user filter by date range or search for text.

    In the bottom half I have Subform where I want to list the result of a query basesd on the criteria in the fields above.

    My questions are:

    1. Can this be done through the GUI or will I need to do something in VBA?
    2. Can sombody provide a little guidance as to how I should appoach this?


  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,772
    Suggest that a single form will accomplish this. Set form to Continuous view. Put the unbound search controls in the form header section. Arrange data controls in detail section to look like datasheet. Methods to filter will involve VBA, how much depends on approach. Review:

    http://www.datapigtechnologies.com/f...tomfilter.html

    http://www.allenbrowne.com/ser-62code.html
    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: 8
    Last Post: 05-19-2014, 05:05 AM
  2. Subform with dynamic number of columns
    By modbass in forum Programming
    Replies: 1
    Last Post: 12-15-2011, 03:39 AM
  3. Dynamic Form, Dynamic labels/ captions?
    By JFo in forum Programming
    Replies: 15
    Last Post: 10-12-2011, 08:33 PM
  4. Replies: 1
    Last Post: 07-30-2010, 10:28 AM
  5. Dynamic Query
    By pushpm in forum Queries
    Replies: 0
    Last Post: 04-22-2009, 12:58 PM

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