Results 1 to 6 of 6
  1. #1
    zy0n1c is offline Novice
    Windows 10 Access 2016
    Join Date
    May 2018
    Location
    AL
    Posts
    21

    Access 2016 - help creating form input to filtered report by dropdown list.

    Background: Access 2016 .accdb file on Windows 10 Pro. Single user at the moment. 8 tables, 6 queries, 7 forms, 3 reports.


    Project: We do temporary hiring/staffing for many different industries. I've been tasked with creating a custom database that my users will be able to sort by a number of criteria and generate reports. Mainly, employees. We are going to store their personal information, emergency contact info, and safety training/certifications. If we get a job in, say, New York, that requires 10 hydroblasters with confined spaces training my employees would like to open a form(menu) and drop down the state, type of trade, and safety training required and generate a report showing all ~X number of employees that fit those requirements.


    Where I'm at: I've created the EmployeeDB table, loaded it with several fields. Everything from first name to SSN.


    Notable fields:
    State - Lookup field from StateAbbrevDB table
    Job Types - Lookup field from JobtypeDB table
    Site Specific Training - Lookup field from SiteSpecificDB table
    Status - Lookup field from EmployeeStatusDB table
    @ - attachment field for copies of certifications, IDs, etc.


    Forms:
    I've created a "main menu" which opens forms for AddANewEmployee - which adds records. By far the easiest form so far.
    I've created an EmployeeSearch form which works for specific things by using text boxes and the query arguments: Is Null Or Like "" & [Forms]![EmployeeSearch]![TxtFirstName] & "" - and several OR statements
    I'm trying to create an EmployeeFilter form. I cannot wrap my head around how to place the fields on the form - unbound combo box? text field with input mask? Do I use a control source? How can I provide my users a dropdown list containing all 50 states and allow them to filter/browse our employee database based on which state they're in? If it's not too much harder, I'd like the dropdown to be checkboxes and allow multiple state searches, for example on the border of CO, AZ, NM, UT we'd want to see candidates from all 4 states.


    I AM new to this but everyone has to start somewhere. Just hoping to get some help pushing past this one form. If I can make it happen for this table, I should be able to reproduce it on my other tables afterwards.
    I've uploaded a copy of the .accdb file here: http://s000.tinyupload.com/?file_id=...83733975093056
    Any help would be greatly appreciated -- PS all data in the database is made up gibberish, I'm not posting people's actual SSNs.

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Many of us won't click on links to unknown sites, so you may be better off zipping the file and attaching it to a post here. Here's one way to report on multiple selections:

    http://www.baldyweb.com/multiselect.htm
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    zy0n1c is offline Novice
    Windows 10 Access 2016
    Join Date
    May 2018
    Location
    AL
    Posts
    21
    Employee Database v021.zip

    Here is my database attached.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    And another tutorial http://allenbrowne.com/ser-62.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.

  5. #5
    zy0n1c is offline Novice
    Windows 10 Access 2016
    Join Date
    May 2018
    Location
    AL
    Posts
    21
    Hey everyone,

    I managed to solve it myself before I got your responses. Just now getting time to "close" this thread.

    Long story short - I made a huge mistake at some point and didn't catch it. I was querying a query with my filter. The query it was querying had criteria for searching for a specific employee like name, phone number, etc. So, it was trying to submit state values to a txt firstname box and...whatever sense you can make of that mess.

    Queried the table directly with a new query, combo boxes passed information properly and I've even got my Or statements set up properly. It's working as intended. Now i'm moving on to checkboxes.

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Glad you got it sorted.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 7
    Last Post: 05-12-2018, 06:44 AM
  2. Replies: 2
    Last Post: 03-07-2017, 04:00 PM
  3. Replies: 2
    Last Post: 11-08-2016, 11:37 AM
  4. form with dropdown button and input boxes
    By Zarrukh in forum Forms
    Replies: 5
    Last Post: 10-11-2016, 03:57 PM
  5. Open a report based on a filtered list box
    By irish634 in forum Access
    Replies: 5
    Last Post: 02-07-2012, 08:10 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