If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
multi-component query
I am attempting to build a query that returns customers based on two
criteria: (1) state of residence and (2) type of product. All customers only have one state of residence but can have multiple types of products. It is important to note that: When entering a customer, the state is selected by choosing the appropriate abbreviation in a combo box on the "Customer_Information" form. This combo box subsequently fills the field C_STATE with the abbreviation. The product types are then selected by a clicking the appropriate check box. Each check box is tied to it's own field. So, if a customer manufactures products 1 and 5, field P_1 and P_5 are populated with a "-1." For my query, I want the user to be able to select multiple states and multiple product types. For example, to conduct a query that returns all customers in PA and NY that manufacture products 1 and 5. I'm having a problem when it comes to setting up the query and linking it to a form. I ideally want to have a list box of all state abbreviations and a series of checkboxes each corresponding to product types. The user can then highlight the states desired in the list box and check the appropriate product types. I've been referred to two websites (http://www.mvps.org/access/forms/frm0007.htm and http://www.microsoft-accesssolutions...ng_listbox.htm) they were both helpful; however, they do not answer my question as to how I can create a query with inputs from a form that have various components. What is the best way to accomplish this task? Thank you very much for your help. Any assistance is greatly appreciated. LB |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Nested in-line Query | laura | Running & Setting Up Queries | 0 | February 11th, 2005 12:17 AM |
Parameter query - nested queries | laura | Running & Setting Up Queries | 3 | February 10th, 2005 04:09 PM |
Here's a shocker | Mike Labosh | General Discussion | 2 | October 26th, 2004 05:04 PM |
Taher | Setting Up & Running Reports | 1 | August 31st, 2004 09:07 PM | |
Hidden files in Ms-Query cause ODBC connect errors or Query is wac | needyourhelp | General Discussion | 4 | July 12th, 2004 09:38 PM |