Page 2 of 2 FirstFirst 12
Results 16 to 24 of 24
  1. #16
    Dave14867's Avatar
    Dave14867 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Nov 2016
    Location
    Upstate NY
    Posts
    376
    smg,



    The duplicates in the date field are because of the way the data is in the tables is structured, it's pulling every table entry, that is why, if it were me, I would restructure the tables. With that being said, the "Officer" Combo Box should only list the Officers that had an "Assessment" on the date chosen. Make sure your using the Grayed out combo boxes, not the original ones.

    Dave

  2. #17
    Dave14867's Avatar
    Dave14867 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Nov 2016
    Location
    Upstate NY
    Posts
    376
    smg,

    I added a new combo that allows the user to select from all entries in the assessment table and they can see all data for each entry, and I made the other Combo's invisible to prevent confusion. Keep in mind, at this point, nothing in the rest of the form gets updated based on the selection.

    CONOPS Assessments-2.zip

    Dave

  3. #18
    smg is offline Competent Performer
    Windows XP Access 2010 64bit
    Join Date
    Apr 2019
    Posts
    121
    I like that option thank you. However, my goal is to filter for all assessments by date or filter for all assessments by officer. If the answer is restructuring tables to get to this end result, would you please tell me how you would restructure in order to get distinct dates in a combo box so that I could filter the form for assessments on a specific date? Let's work with getting to all assessments on 03/21/19. I really appreciate your assistance

  4. #19
    Dave14867's Avatar
    Dave14867 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Nov 2016
    Location
    Upstate NY
    Posts
    376
    smg,

    I am not sure if that can be done with a combo box with the current structure, maybe someone else can chime in on that, many have come up with ways of getting things done that I wouldn't have been able to get accomplished.

    I will see about modifying some tables to see if I can get you what you want.

    Dave

  5. #20
    Dave14867's Avatar
    Dave14867 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Nov 2016
    Location
    Upstate NY
    Posts
    376
    smg,

    I think I may have what you want, and it may be able to be done in your original file. Take a look at the attached file, you pick a date, then select the officer drop down and you get a list of the officers that had an assessment on that day.


    CONOPS Assessments-22.zip

    Dave

  6. #21
    smg is offline Competent Performer
    Windows XP Access 2010 64bit
    Join Date
    Apr 2019
    Posts
    121
    That works and I will see if I can get it to update the rest of the form. Thank you so much!

  7. #22
    davegri's Avatar
    davegri is online now Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,411
    CONOPS Assessments-22-davegri-v01.zip
    See if this is more like what you want. for the date and officer comboboxes it uses filters instead of findfirst.
    So when you select an officer, it will restrict the form to ONLY that officer.
    When you select a date it will restrict the form to ONLY that date.
    When you select a date and an officer, it will restrict the form to ONLY that officer on that date.

  8. #23
    smg is offline Competent Performer
    Windows XP Access 2010 64bit
    Join Date
    Apr 2019
    Posts
    121
    Yes yes yes, this is it! Thank you so much, I do so appreciate!!

  9. #24
    davegri's Avatar
    davegri is online now Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,411
    And if you want to turn off the search and show all, add a button in the header with this event:
    Code:
    Private Sub cmdShowAll_Click()
        Me.CboSelectAssessmentDate = Null
        Me.cboSelectOfficer = Null
        Me.FilterOn = False
    End Sub
    

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Lock Value in Combo Box if Non-Blank
    By ErikAE in forum Forms
    Replies: 4
    Last Post: 08-29-2014, 11:23 PM
  2. Replies: 11
    Last Post: 11-28-2012, 04:29 PM
  3. Combo Box defaults to Blank
    By jimmonator in forum Forms
    Replies: 13
    Last Post: 05-02-2011, 01:28 PM
  4. Blank Data to Combo
    By dlewicki in forum Access
    Replies: 10
    Last Post: 01-14-2010, 10:07 AM
  5. Blank combo boxes
    By ROBBO in forum Forms
    Replies: 3
    Last Post: 01-06-2010, 10:22 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