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

Drop-Down Boxes



 
 
Thread Tools Display Modes
  #1  
Old May 4th, 2006, 07:45 PM posted to microsoft.public.access.tablesdbdesign
external usenet poster
 
Posts: n/a
Default Drop-Down Boxes

I would like to do something a little more complicated this time.

I have a list of businesses. Each business has an office in several cities
in America.

I would like to set it up so that future users of the database can use a
drop-down box (meaning you see only the name of the first business in the
box) to locate the business they want. Then they use a drop-down box below
it (set up the same way) to select the city for that particular business.
Then they would see a card with the info for that business in that particular
city.

You see, the second box would adjust itself according to the data in the
first. If they chose "Fillmore Publishing," the second list would give them
the choices of Anchorage, Phoenix, New York. However, if they chose
"Thompson Glassworks," the second list would give them a choice of Seattle,
Los Angeles and Orlando. Whatever cities apply to that particular business.

Can anyone help? Thank you! Eric
  #2  
Old May 4th, 2006, 08:49 PM posted to microsoft.public.access.tablesdbdesign
external usenet poster
 
Posts: n/a
Default Drop-Down Boxes

Eric

Look up "Cascading Comboboxes" at mvps.org/access, or at Google.com.

Regards

Jeff Boyce
Microsoft Office/Access MVP


"Eric" wrote in message
...
I would like to do something a little more complicated this time.

I have a list of businesses. Each business has an office in several
cities
in America.

I would like to set it up so that future users of the database can use a
drop-down box (meaning you see only the name of the first business in the
box) to locate the business they want. Then they use a drop-down box
below
it (set up the same way) to select the city for that particular business.
Then they would see a card with the info for that business in that
particular
city.

You see, the second box would adjust itself according to the data in the
first. If they chose "Fillmore Publishing," the second list would give
them
the choices of Anchorage, Phoenix, New York. However, if they chose
"Thompson Glassworks," the second list would give them a choice of
Seattle,
Los Angeles and Orlando. Whatever cities apply to that particular
business.

Can anyone help? Thank you! Eric



  #3  
Old May 5th, 2006, 03:01 PM posted to microsoft.public.access.tablesdbdesign
external usenet poster
 
Posts: n/a
Default Drop-Down Boxes

On my website (www.rogersaccesslibrary.com), is a small Access database
sample called "CascadingComboBoxes.mdb" which illustrates how to do this.

--
--Roger Carlson
MS Access MVP
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/...UBED1=ACCESS-L


"Eric" wrote in message
...
I would like to do something a little more complicated this time.

I have a list of businesses. Each business has an office in several

cities
in America.

I would like to set it up so that future users of the database can use a
drop-down box (meaning you see only the name of the first business in the
box) to locate the business they want. Then they use a drop-down box

below
it (set up the same way) to select the city for that particular business.
Then they would see a card with the info for that business in that

particular
city.

You see, the second box would adjust itself according to the data in the
first. If they chose "Fillmore Publishing," the second list would give

them
the choices of Anchorage, Phoenix, New York. However, if they chose
"Thompson Glassworks," the second list would give them a choice of

Seattle,
Los Angeles and Orlando. Whatever cities apply to that particular

business.

Can anyone help? Thank you! Eric



  #4  
Old May 9th, 2006, 05:21 PM posted to microsoft.public.access.tablesdbdesign
external usenet poster
 
Posts: n/a
Default Drop-Down Boxes

Great! I've created the cascading combo boxes. Now I'd like to arrange it
so that one the item in the second box has been chosen, the entire record
shows up on the form. I'm trying various things but to no avail. No matter
what I do, the first record in the database just sits there on the form,
totally unrelated to the Combo Boxes. Can someone point the way? Eric

"Roger Carlson" wrote:

On my website (www.rogersaccesslibrary.com), is a small Access database
sample called "CascadingComboBoxes.mdb" which illustrates how to do this.

--
--Roger Carlson
MS Access MVP
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/...UBED1=ACCESS-L


"Eric" wrote in message
...
I would like to do something a little more complicated this time.

I have a list of businesses. Each business has an office in several

cities
in America.

I would like to set it up so that future users of the database can use a
drop-down box (meaning you see only the name of the first business in the
box) to locate the business they want. Then they use a drop-down box

below
it (set up the same way) to select the city for that particular business.
Then they would see a card with the info for that business in that

particular
city.

You see, the second box would adjust itself according to the data in the
first. If they chose "Fillmore Publishing," the second list would give

them
the choices of Anchorage, Phoenix, New York. However, if they chose
"Thompson Glassworks," the second list would give them a choice of

Seattle,
Los Angeles and Orlando. Whatever cities apply to that particular

business.

Can anyone help? Thank you! Eric




  #5  
Old May 9th, 2006, 08:20 PM posted to microsoft.public.access.tablesdbdesign
external usenet poster
 
Posts: n/a
Default Drop-Down Boxes

Eric

A suggestion ... when you change the topic, start a new thread. That way,
you get more eyes on your issue.

You need a way to tell Access to find/load the record that corresponds to
the selection(s) you've made. One way is to filter the recordset the form
is bound to. Another is to based the form on the single record represented
by the choices.

To do the latter, change the query on which you base the form to include, as
a selection criterion for the ID field, a reference pointing to the ID of
the value selected in the combo box (the last one in the "cascade".

Then, in the AfterUpdate event of that last combobox in the cascade, use
something like:

Me.Requery

to force the form to rerun the query on which it is based.

Regards

Jeff Boyce
Microsoft Office/Access MVP

"Eric" wrote in message
...
Great! I've created the cascading combo boxes. Now I'd like to arrange
it
so that one the item in the second box has been chosen, the entire record
shows up on the form. I'm trying various things but to no avail. No
matter
what I do, the first record in the database just sits there on the form,
totally unrelated to the Combo Boxes. Can someone point the way? Eric

"Roger Carlson" wrote:

On my website (www.rogersaccesslibrary.com), is a small Access database
sample called "CascadingComboBoxes.mdb" which illustrates how to do this.

--
--Roger Carlson
MS Access MVP
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/...UBED1=ACCESS-L


"Eric" wrote in message
...
I would like to do something a little more complicated this time.

I have a list of businesses. Each business has an office in several

cities
in America.

I would like to set it up so that future users of the database can use
a
drop-down box (meaning you see only the name of the first business in
the
box) to locate the business they want. Then they use a drop-down box

below
it (set up the same way) to select the city for that particular
business.
Then they would see a card with the info for that business in that

particular
city.

You see, the second box would adjust itself according to the data in
the
first. If they chose "Fillmore Publishing," the second list would give

them
the choices of Anchorage, Phoenix, New York. However, if they chose
"Thompson Glassworks," the second list would give them a choice of

Seattle,
Los Angeles and Orlando. Whatever cities apply to that particular

business.

Can anyone help? Thank you! Eric






  #6  
Old May 10th, 2006, 06:45 PM posted to microsoft.public.access.tablesdbdesign
external usenet poster
 
Posts: n/a
Default Drop-Down Boxes

Jeff,

I certainly will start a new topic going forward.

Is there a page on the Microsoft site you can point me to that illustrates
all of this?

Eric

"Jeff Boyce" wrote:

Eric

A suggestion ... when you change the topic, start a new thread. That way,
you get more eyes on your issue.

You need a way to tell Access to find/load the record that corresponds to
the selection(s) you've made. One way is to filter the recordset the form
is bound to. Another is to based the form on the single record represented
by the choices.

To do the latter, change the query on which you base the form to include, as
a selection criterion for the ID field, a reference pointing to the ID of
the value selected in the combo box (the last one in the "cascade".

Then, in the AfterUpdate event of that last combobox in the cascade, use
something like:

Me.Requery

to force the form to rerun the query on which it is based.

Regards

Jeff Boyce
Microsoft Office/Access MVP

"Eric" wrote in message
...
Great! I've created the cascading combo boxes. Now I'd like to arrange
it
so that one the item in the second box has been chosen, the entire record
shows up on the form. I'm trying various things but to no avail. No
matter
what I do, the first record in the database just sits there on the form,
totally unrelated to the Combo Boxes. Can someone point the way? Eric

"Roger Carlson" wrote:

On my website (www.rogersaccesslibrary.com), is a small Access database
sample called "CascadingComboBoxes.mdb" which illustrates how to do this.

--
--Roger Carlson
MS Access MVP
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/...UBED1=ACCESS-L


"Eric" wrote in message
...
I would like to do something a little more complicated this time.

I have a list of businesses. Each business has an office in several
cities
in America.

I would like to set it up so that future users of the database can use
a
drop-down box (meaning you see only the name of the first business in
the
box) to locate the business they want. Then they use a drop-down box
below
it (set up the same way) to select the city for that particular
business.
Then they would see a card with the info for that business in that
particular
city.

You see, the second box would adjust itself according to the data in
the
first. If they chose "Fillmore Publishing," the second list would give
them
the choices of Anchorage, Phoenix, New York. However, if they chose
"Thompson Glassworks," the second list would give them a choice of
Seattle,
Los Angeles and Orlando. Whatever cities apply to that particular
business.

Can anyone help? Thank you! Eric






  #7  
Old May 10th, 2006, 06:51 PM posted to microsoft.public.access.tablesdbdesign
external usenet poster
 
Posts: n/a
Default Drop-Down Boxes

Forms or FormsCoding would be the newgroups.

Regards

Jeff Boyce
Microsoft Office/Access MVP


"Eric" wrote in message
...
Jeff,

I certainly will start a new topic going forward.

Is there a page on the Microsoft site you can point me to that illustrates
all of this?

Eric

"Jeff Boyce" wrote:

Eric

A suggestion ... when you change the topic, start a new thread. That
way,
you get more eyes on your issue.

You need a way to tell Access to find/load the record that corresponds to
the selection(s) you've made. One way is to filter the recordset the
form
is bound to. Another is to based the form on the single record
represented
by the choices.

To do the latter, change the query on which you base the form to include,
as
a selection criterion for the ID field, a reference pointing to the ID of
the value selected in the combo box (the last one in the "cascade".

Then, in the AfterUpdate event of that last combobox in the cascade, use
something like:

Me.Requery

to force the form to rerun the query on which it is based.

Regards

Jeff Boyce
Microsoft Office/Access MVP

"Eric" wrote in message
...
Great! I've created the cascading combo boxes. Now I'd like to
arrange
it
so that one the item in the second box has been chosen, the entire
record
shows up on the form. I'm trying various things but to no avail. No
matter
what I do, the first record in the database just sits there on the
form,
totally unrelated to the Combo Boxes. Can someone point the way? Eric

"Roger Carlson" wrote:

On my website (www.rogersaccesslibrary.com), is a small Access
database
sample called "CascadingComboBoxes.mdb" which illustrates how to do
this.

--
--Roger Carlson
MS Access MVP
Access Database Samples: www.rogersaccesslibrary.com
Want answers to your Access questions in your Email?
Free subscription:
http://peach.ease.lsoft.com/scripts/...UBED1=ACCESS-L


"Eric" wrote in message
...
I would like to do something a little more complicated this time.

I have a list of businesses. Each business has an office in several
cities
in America.

I would like to set it up so that future users of the database can
use
a
drop-down box (meaning you see only the name of the first business
in
the
box) to locate the business they want. Then they use a drop-down
box
below
it (set up the same way) to select the city for that particular
business.
Then they would see a card with the info for that business in that
particular
city.

You see, the second box would adjust itself according to the data in
the
first. If they chose "Fillmore Publishing," the second list would
give
them
the choices of Anchorage, Phoenix, New York. However, if they chose
"Thompson Glassworks," the second list would give them a choice of
Seattle,
Los Angeles and Orlando. Whatever cities apply to that particular
business.

Can anyone help? Thank you! Eric








 




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
Drop down boxes in Word 2003 Valerie General Discussion 2 April 29th, 2006 06:46 PM
Pivot Table Drop Down Boxes Dave S General Discussion 1 November 7th, 2005 09:45 PM
Drop down boxes with 3 choices [email protected] General Discussion 4 November 3rd, 2005 06:56 AM
Drop down lists and check boxes in a form smurphy General Discussion 23 June 6th, 2005 09:03 PM
Drop down List Boxes Bob C Worksheet Functions 1 September 20th, 2004 01:18 AM


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