Home

Return all results matching the search criterion

%3CLINGO-SUB%20id%3D%22lingo-sub-419541%22%20slang%3D%22en-US%22%3EReturn%20all%20results%20matching%20the%20search%20criterion%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-419541%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20everyone%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%203%20tables%3A%20tblGeneralInfo%2C%20tblCap_Airflow%2C%20and%20tblCap_Yes%2FNoQuestions%20and%20a%20form%20with%202%20buttons%3A%20Airflow%20and%20DER%20Repairs.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHere%20are%20the%20relationships%3A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20601px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F106393iDC026A0C13B92BCF%2Fimage-dimensions%2F601x378%3Fv%3D1.0%22%20width%3D%22601%22%20height%3D%22378%22%20alt%3D%22relationship.JPG%22%20title%3D%22relationship.JPG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CUL%3E%3CLI%3EThe%20Airflow%20column%20from%20the%20tblCap_Airflow%20is%20a%20multi-valued%20field%20where%20a%20Company%20can%20have%20many%20Airflow%20capabilities%20which%20allows%20the%20%22Company%20Name%22%20column%20to%20have%20repeated%20company%20names%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20622px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F106395iEA7B0451BCAAA4E1%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22airflow%20table.JPG%22%20title%3D%22airflow%20table.JPG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EI'm%20looking%20to%20create%20a%20form%20using%20tblCap_Airflow%20that%20is%20able%20to%20return%20all%20Company%20Names%20and%20their%20corresponding%20Details%20(if%20available)%20with%20respect%20to%20the%20selected%20Airflow%20value%20and%20when%20the%20%22Airflow%22%20button%20is%20clicked%2C%20the%20form%20is%20prompted.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSTRONG%3EDesired%20result%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESelected%20Airflow%20Value%20%3D%20CCDI%20massflow%20machine%3C%2FP%3E%3CP%3ENumber%20of%20Companies%20%3D%204%3C%2FP%3E%3CP%3EList%20of%20Company%20Names%3A%26nbsp%3B%3C%2FP%3E%3CP%3E1.%20A%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2FP%3E%3CP%3E2.%20CHR%3C%2FP%3E%3CP%3E3.%20ETH%3C%2FP%3E%3CP%3E4.%20REV%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CUL%3E%3CLI%3EThe%20%22Performing%20DER%20Repairs%22%20column%20from%20tblCap_Yes%2FNoQuestions%20is%20also%20a%20multi-valued%20field%20with%20returns%20only%20Yes%20or%20No%2C%20therefore%2C%20the%20company%20names%20in%20the%20%22Company%20Name%22%20column%20only%20occur%20once%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20636px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F106396i28172C38349C78B3%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22yesno%20table.JPG%22%20title%3D%22yesno%20table.JPG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EFor%20this%20table%2C%20I'm%20looking%20to%20do%20the%20same%20things%20as%20mentioned%20above%2C%20however%2C%20only%20count%20and%20return%20company%20names%20that%20have%20%22Yes%22%20in%20the%20%22Performing%20DER%20Repairs%22%20column.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20tried%20to%20create%20a%20combo%20box%20for%20Airflow%20to%20select%20Airflow%20option%20but%20it%20doesn't%20seem%20to%20work.%20The%20drop%20down%20list%20contains%20repeated%20values%2C%20not%20unique%20ones%20and%20it%20either%20only%20returns%20one%20company%20name%20at%20a%20time%20not%20all%20companies%20or%20doesn't%20return%20anything%20at%20all.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20405px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F106403iE746B030262D7B6D%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22result.JPG%22%20title%3D%22result.JPG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20don't%20have%20any%20experience%20with%20Access%20and%20this%20is%20my%20first%20time%20dealing%20with%20it.%26nbsp%3BPlease%20can%20anyone%20show%20me%20how%20to%20go%20about%20this%3F%20Thank%20you%20so%20much!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-419541%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3E2013%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAccess%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-449426%22%20slang%3D%22en-US%22%3ERe%3A%20Return%20all%20results%20matching%20the%20search%20criterion%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-449426%22%20slang%3D%22en-US%22%3EYou%20should%20make%20three%20forms%3A%20one%20for%20each%20table.%20You%20can%20use%20the%20form%20wizard%20to%20do%20this.%20In%20the%20navigation%20pane%20on%20the%20left%2C%20locate%20and%20select%20one%20of%20the%20tables%2C%20On%20the%20ribbon%20select%20Create-%26gt%3BForm%20Wizard.%20Repeat%20for%20the%20other%20two.%20Then%2C%20in%20the%20navigation%20pane%2C%20right%20click%20on%20the%20form%20you%20created%20for%20the%20tblGeneralInfo%20and%20select%20'Design%20view'.%20This%20should%20display%20and%20activate%20the%20Design%20table%20tab%20on%20the%20ribbon.%20Make%20some%20more%20space%20on%20the%20form%20by%20hovering%20over%20the%20bottom%20edge%20and%20dragging%20it%20down.%20In%20the%20Controls%20panel%20on%20the%20ribbon%2C%20locate%20the%20Subform%2FSubreport%20control%20(you%20can%20click%20once%20on%20each%20control%20icon..leave%20the%20mouse%20pointer%20hovering%20over%20it...and%20the%20description%20will%20be%20displayed).%20With%20the%20Subform%2FSubreport%20control%20selected%2C%20move%20the%20mouse%20pointer%20to%20the%20Detail%20section%20of%20your%20form%2C%20press%20and%20hold%20the%20left%20mouse%20button%20to%20create%20a%20rectangle%20to%20hold%20one%20of%20the%20two%20remaining%20forms%20and%20When%20you%20release%20the%20left%20mouse%20button%2C%20a%20popup%20window%20appears%20allowing%20you%20to%20specify%20the%20name%20of%20the%20existing%20subform%20that%20you%20want%20to%20include%20in%20the%20form%2C%20which%20fields%20should%20be%20listed%20on%20the%20subform%20and%20the%20name%20of%20the%20column%20used%20to%20link%20the%20data%20to%20the%20main%20form.%20Add%20a%20second%20subform%20control%20and%20repeat%20the%20process.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-544428%22%20slang%3D%22en-US%22%3ERe%3A%20Return%20all%20results%20matching%20the%20search%20criterion%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-544428%22%20slang%3D%22en-US%22%3EIn%20your%20combobox%20group%20the%20data%20so%20you%20only%20have%20one%20of%20each%20type.%20Depending%20on%20how%20you%20plan%20on%20displaying%20the%20results%2C%20you%20can%20have%20the%20subform%20listing%20company%20names.%20Then%20set%20the%20filter%20to%20the%20%22Ccdi...%22%3CBR%20%2F%3ESame%20with%20the%20yes%2Fno%20filter%20to%20%22Yes%22%20and%20if%20the%20results%20are%20group%20by%20you%20can%20get%20a%20count%20of%20the%20answers.%3CBR%20%2F%3EYou%20can%20use%20the%20table%20as-is.%20Just%20group%20the%20data%20in%20the%20combobox.%3C%2FLINGO-BODY%3E
trdoan
New Contributor

Hi everyone,

 

I have 3 tables: tblGeneralInfo, tblCap_Airflow, and tblCap_Yes/NoQuestions and a form with 2 buttons: Airflow and DER Repairs.

 

Here are the relationships:

relationship.JPG

  • The Airflow column from the tblCap_Airflow is a multi-valued field where a Company can have many Airflow capabilities which allows the "Company Name" column to have repeated company names

airflow table.JPG

I'm looking to create a form using tblCap_Airflow that is able to return all Company Names and their corresponding Details (if available) with respect to the selected Airflow value and when the "Airflow" button is clicked, the form is prompted.

 

Desired result:

 

Selected Airflow Value = CCDI massflow machine

Number of Companies = 4

List of Company Names: 

1. A     

2. CHR

3. ETH

4. REV

 

  • The "Performing DER Repairs" column from tblCap_Yes/NoQuestions is also a multi-valued field with returns only Yes or No, therefore, the company names in the "Company Name" column only occur once

yesno table.JPG

For this table, I'm looking to do the same things as mentioned above, however, only count and return company names that have "Yes" in the "Performing DER Repairs" column.

 

I tried to create a combo box for Airflow to select Airflow option but it doesn't seem to work. The drop down list contains repeated values, not unique ones and it either only returns one company name at a time not all companies or doesn't return anything at all.

result.JPG

 

I don't have any experience with Access and this is my first time dealing with it. Please can anyone show me how to go about this? Thank you so much!

 

2 Replies
You should make three forms: one for each table. You can use the form wizard to do this. In the navigation pane on the left, locate and select one of the tables, On the ribbon select Create->Form Wizard. Repeat for the other two. Then, in the navigation pane, right click on the form you created for the tblGeneralInfo and select 'Design view'. This should display and activate the Design table tab on the ribbon. Make some more space on the form by hovering over the bottom edge and dragging it down. In the Controls panel on the ribbon, locate the Subform/Subreport control (you can click once on each control icon..leave the mouse pointer hovering over it...and the description will be displayed). With the Subform/Subreport control selected, move the mouse pointer to the Detail section of your form, press and hold the left mouse button to create a rectangle to hold one of the two remaining forms and When you release the left mouse button, a popup window appears allowing you to specify the name of the existing subform that you want to include in the form, which fields should be listed on the subform and the name of the column used to link the data to the main form. Add a second subform control and repeat the process.
In your combobox group the data so you only have one of each type. Depending on how you plan on displaying the results, you can have the subform listing company names. Then set the filter to the "Ccdi..."
Same with the yes/no filter to "Yes" and if the results are group by you can get a count of the answers.
You can use the table as-is. Just group the data in the combobox.
Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
30 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies