G
Guest
Can anyone point me in the direction of cascading combo
boxes pref with examples.
Thanks
Clive
boxes pref with examples.
Thanks
Clive
Douglas J. Steele said:http://www.mvps.org/access/forms/frm0028.htm at "The Access Web" is one
example.
gavin said:Hi Ken,
Sorry for the delay in replying - I can't access this forum from my work PC
and the database I was working on was at work.
My scenario is that I have an Access database to track the requests for
information we get at our tourist information centre. The information I need
to record is contact details for the person needing information (i.e. name,
address, email, phone etc) and the information they require, when they
requested it and how (in person, by letter, email, phone), how we actioned
their request and when.
In order to make data entry simpler for users I thought it would be good to
put the "information requested" in a drop down box.
However, the list of
topics could get quite long so I thought it would be neat to have two drop
down boxes. The first would have a list of possible topics (accommodation,
events, information, tickets) and the second box would display
sub-categories depending on the selection in the first box, i.e if
"Accommodation" was selected in the first box the second box would have the
choices "hotels", "B&B" "hostels" "campsites".
First of all I need to get the structure of the database right! I am
assuming that I will need more than one table (drat!!!)? I reckon 3? The
main table for storing information about the request (who made it, when, the
action taken and when), one for the top level category for the nature of the
request and one for the second level? If this is wrong please correct me!
Then I'll need to work out relationships - primary keys and foreign keys. I
would appreciate help here!
Lastly the process of getting this feature to work. I have seen a few
examples on various websites but the explanations haven't made much sense to
me. From what I can remember there was an AfterUpdate event attached to
either the first combo box or both combo plus a query?
Ken Snell said:Are you asking for more explanation about the suggested five-table
structure? Or what to do next?
The tables are where the data are stored. Forms are where the "power" of the
database is made possible through the display and manipulation of the data
via queries, etc.
The reason for the tblCatSubcat table is so that you can have multiple
subcategories for each category.
I recommend that you obtain a book on ACCESS that will help you get through
the "basics" of setting up tables, queries, forms, etc. A newsgroup is not
an effective forum to walk through the "tediously" mundane details of
setting up tables, etc., but is better suited for addressing specific
questions related to those actions. (To describe this in a newsgroup post
would mean reproducing chapters of such books.)