A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

multi-component query



 
 
Thread Tools Display Modes
  #1  
Old June 23rd, 2005, 05:52 PM
Lauren B
external usenet poster
 
Posts: n/a
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Nested in-line Query laura Running & Setting Up Queries 0 February 11th, 2005 01:17 AM
Parameter query - nested queries laura Running & Setting Up Queries 3 February 10th, 2005 05:09 PM
Here's a shocker Mike Labosh General Discussion 2 October 26th, 2004 05:04 PM
Print 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


All times are GMT +1. The time now is 07:40 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.