Results 1 to 2 of 2
  1. #1
    NickWren is offline Advanced Beginner
    Windows XP Access 2013
    Join Date
    Dec 2015
    Location
    Connecticut
    Posts
    70

    Command Button that will set new parameters for a query in a subform

    I have a form that uses filters and query criteria to find and see the status' of our samples in our lab, I only got the filter buttons to work, but I want to use either a where command or use the queries criteria and a hidden textbox to only show certain records within the last week, month, ect...

    My main form that has several buttons;
    • one removes the filter showing all tests
    • one shows only one type of test
    • and the other show the other type of test


    Now I want to separate it by date buttons; this week (>Date()-7), last month(>Date()-31), last quarter(>Date()-92), last year(>Date()-365)


    (all I need is one of these buttons vba command to work and I can get the rest from that one)

    Eventually I'd want to be able to have a search criteria pop up when you hit find;
    this will be able to find a certain Sample ID, Patient Name (or Patient ID), Physician Name

    -Pretty much for that one I just need to have a second form popup that will give requery the subform to give me the record we searched for.

  2. #2
    Perceptus's Avatar
    Perceptus is offline Expert
    Windows 7 64bit Access 2007
    Join Date
    Nov 2012
    Location
    Knoxville, Tennessee
    Posts
    659
    You could have a hidden unbound field in the subform, and update the value of that field then requery. (in theory)

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

Similar Threads

  1. Replies: 9
    Last Post: 11-16-2014, 12:12 AM
  2. Replies: 1
    Last Post: 09-12-2014, 06:09 AM
  3. Replies: 13
    Last Post: 03-09-2014, 02:11 AM
  4. Replies: 4
    Last Post: 10-08-2012, 05:33 PM
  5. Command button to populate subform
    By akhlaq768 in forum Forms
    Replies: 2
    Last Post: 02-07-2012, 04:57 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