Re: Trouble w/ Value List
- From: Philip Herlihy <me@localhost>
- Date: Thu, 17 Sep 2009 17:25:00 +0100
ikcaj wrote:
Hello,
I'm attempting to create a database after seven years of not using Access and I'm already stuck on what is probably a very simple issue:
I am using Win Vista w/ MS Office 2000. I am creating a resource DB, similar to the contact template DB, except for three unique fields. Each entry must have a) one of three set choices b)any combination of eight set choices and c)any combination of four set choices.
I have created the basic db and form without problem. It is trying to specify the list fields that is causing me trouble. In following the "Help" directions, I keep ending up with a column of all my choices and it only choosing the first one.
What I am wanting is three drop down lists, two of which allow for multiple selections. This is a private db, not for use on the Web or a server. I am the only one inputting data.
If I need to offer more information in order to receive advice please let me know.
Thanks,
Jacki
Right-click one of the combo boxes and look at the properties. The RowSource says where it gets the items from, and the RowSourceType indicates if that's a simple list or a reference to a table or query. If you set "Limit to List" to True, then only those items can be picked. Under some circumstances you may want to use a validation rule instead - you couldn't have a list of all the email addresses in the world (limit to list) but you could devise a validation rule expression which returned True if the text entered contained an "@" character. The row sources for your three combo boxes should be different. If the items are in the same table, then you'll need three different queries on that table to pick out the right items.
It's often worth experimenting to figure this sort of thing out. Make sure the control Wizard is turned on, then add a few extra combo boxes to your form (you can delete them later). Fool around with the options that the Wizard offers you, and then study the properties of the resulting controls.
One thing rings alarm bells. You mention multiple selections. The List Box control has a "Multi Select" property - I don't think the Combo Box has (can't find it in Access 2007 anyway). However, there are dangers - it's considered bad design to have multiple values in one table field (violates the "normalisation" rule of "1st Normal Form" to be specific). Think of it this way: if multiple selections would mean you'd want to put several values - maybe separated with commas - into a single field, then think again. The "Normal Form" rules exist to prevent your data structure being too complex to manage. On the other hand, if multiple selects meant that each item was tied to a separate true/false field, then it's ok. Generally, though, multiple values means multiple records, or you'll be up very late puzzling out later stages of your design.
HTH
Phil, London
.
- References:
- Trouble w/ Value List
- From: ikcaj
- Trouble w/ Value List
- Prev by Date: Help with Hospitals Database
- Next by Date: Re: Help with Hospitals Database
- Previous by thread: Trouble w/ Value List
- Next by thread: Re: Trouble w/ Value List
- Index(es):
Relevant Pages
|