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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Grouping multiple data for one search



 
 
Thread Tools Display Modes
  #1  
Old June 2nd, 2010, 07:57 PM posted to microsoft.public.access
Ethan
external usenet poster
 
Posts: 15
Default Grouping multiple data for one search

Hey,

I have a table with 4 columns; Metro, St Cloud, Duluth, Rochester.

In those tables are lists of counties associated with the column names
(Metro - Hennepin, Anoka, Wright) (Duluth - St. Louis, Carlton) etc...

To begin with, I am tweaking a form that is linked to a query (SQL).
Ideally, I would like a drop down box with Metro, St Cloud, Duluth, Rochester
as choices. If you search for one of these (Metro for example) all the
counties associated with metro are returned. Also, I would like to be able
to select multiple areas, Metro and Duluth, which will return all the
counties from Metro and Duluth.



Thanks for your input

Ethan

  #2  
Old June 2nd, 2010, 09:06 PM posted to microsoft.public.access
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Grouping multiple data for one search

Your table is constructed as a spreadsheet instead of a relational database.
It should be like this --
Area County

With data like this --
Metro Hennepin
Metro Anoka
Metro Wright
Duluth St. Louis
Duluth Carlton

Then your combo could select an area and the query feeding the form use it
as criteria.

--
Build a little, test a little.


"Ethan" wrote:

Hey,

I have a table with 4 columns; Metro, St Cloud, Duluth, Rochester.

In those tables are lists of counties associated with the column names
(Metro - Hennepin, Anoka, Wright) (Duluth - St. Louis, Carlton) etc...

To begin with, I am tweaking a form that is linked to a query (SQL).
Ideally, I would like a drop down box with Metro, St Cloud, Duluth, Rochester
as choices. If you search for one of these (Metro for example) all the
counties associated with metro are returned. Also, I would like to be able
to select multiple areas, Metro and Duluth, which will return all the
counties from Metro and Duluth.



Thanks for your input

Ethan

  #3  
Old June 2nd, 2010, 09:20 PM posted to microsoft.public.access
Ethan
external usenet poster
 
Posts: 15
Default Grouping multiple data for one search

Sounds good. I will work on this and get back to you.

"KARL DEWEY" wrote:

Your table is constructed as a spreadsheet instead of a relational database.
It should be like this --
Area County

With data like this --
Metro Hennepin
Metro Anoka
Metro Wright
Duluth St. Louis
Duluth Carlton

Then your combo could select an area and the query feeding the form use it
as criteria.

--
Build a little, test a little.


"Ethan" wrote:

Hey,

I have a table with 4 columns; Metro, St Cloud, Duluth, Rochester.

In those tables are lists of counties associated with the column names
(Metro - Hennepin, Anoka, Wright) (Duluth - St. Louis, Carlton) etc...

To begin with, I am tweaking a form that is linked to a query (SQL).
Ideally, I would like a drop down box with Metro, St Cloud, Duluth, Rochester
as choices. If you search for one of these (Metro for example) all the
counties associated with metro are returned. Also, I would like to be able
to select multiple areas, Metro and Duluth, which will return all the
counties from Metro and Duluth.



Thanks for your input

Ethan

 




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


All times are GMT +1. The time now is 08:48 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.