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  

Access 2007 - "if-then" rules for selecting lists in a form?



 
 
Thread Tools Display Modes
  #1  
Old May 21st, 2010, 07:30 AM posted to microsoft.public.access
Director of Exhibits
external usenet poster
 
Posts: 1
Default Access 2007 - "if-then" rules for selecting lists in a form?

In my museum operations database, I have 190 exhibits, in 27 galleries, at 2
locations. I would like help in setting up a form so that I can select an
exhibit by starting at lthe ocation, then going to galleries, then exhibits.
For example instead of scrollling through a list of 190 possible exhibits, I
would like to select location A, then when I tab over to galleries, only
galleries in location A are possible in a pull down list, then if I select
gallery 5, then only the 12 exhibits in gallery 5 are possible in a pull down
list.
IS this possilbe in Access? How is this hierachy done?

Thank you.
  #2  
Old May 21st, 2010, 10:35 AM posted to microsoft.public.access
Alex
external usenet poster
 
Posts: 7
Default Access 2007 - "if-then" rules for selecting lists in a form?

Yes, it is possible.
Examle is included

Alex
  #4  
Old May 24th, 2010, 04:23 PM posted to microsoft.public.access
magick
external usenet poster
 
Posts: 19
Default Access 2007 - "if-then" rules for selecting lists in a form?

yes - this probably is not the only way, and not sure how you have your
form(s) set up, but i have set up a series of combo boxes. after you select
the first level (i.e. location), the next level (i.e. galleries) is based on
a query that is filtered by the object that the user has selected in the
first combo box. The exhibits combo box query would be filtered on what the
user selects from the galleries combo box. the syntax in your query's filter
to refer to the previous combo box is as follows:

[forms]![NameofForm]![NameofPreviousComboBox]

you should also set each combo box to "requery" in the On Got Focus property
so that it will rerun and pick up the most recently selected choice each time.

"Director of Exhibits" wrote:

In my museum operations database, I have 190 exhibits, in 27 galleries, at 2
locations. I would like help in setting up a form so that I can select an
exhibit by starting at lthe ocation, then going to galleries, then exhibits.
For example instead of scrollling through a list of 190 possible exhibits, I
would like to select location A, then when I tab over to galleries, only
galleries in location A are possible in a pull down list, then if I select
gallery 5, then only the 12 exhibits in gallery 5 are possible in a pull down
list.
IS this possilbe in Access? How is this hierachy done?

Thank you.

 




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 12:09 AM.


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