Re: Trouble w/ Value List

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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
.



Relevant Pages

  • [Full-Disclosure] Re: Full-Disclosure digest, Vol 1 #1933 - 20 msgs
    ... read from multiple peoples articles that it isn't this kind of bug. ... > that about how bad Windows sucks from people who don't know enough about how ... I don't do it out in the public lists like ... >>because you have a bug up your bum about it and work to prove that stance. ...
    (Full-Disclosure)
  • Re: Difficulty with List Selection and New Records
    ... but one Patent can be assigned to multiple ... Doug Steele, Microsoft Access MVP ... I need to create a list that allows multiple selections. ... successfully created lists that allow multiple selections. ...
    (microsoft.public.access.gettingstarted)
  • Re: MOSS 2007 Out of the Box Workflows Broken
    ... I will add that choosing the Allow Multiple Seletions also prevents users ... from editing lists in datasheet view, exporting lists to excel, and using ... that field in custom workflows through SharePoint Designer. ... theworkflowuses the default Task content type to manageworkflowtasks we ...
    (microsoft.public.sharepoint.portalserver.development)
  • Re: Multiple criteria with multiple results in one cell
    ... multiple criteria. ... firstcell is the first cell of the output array, ... companies in a separate column on that worksheet based on a pay rate table ... drop-down lists on her site, but in those cases, it requires either having a ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Java Toplink Essential - Change entities tables at runtime
    ... Multiple identical tables are like that also - if the data structures are the same and have the same interpretation, that argues for a single logical table. ... I don't know of a term analogous to "normal form" for excessive splitting of tables into many tables; all the normal forms have to do with insufficient splitting. ... Advances in the database world occur in how to structure data - relations, normal forms, star schemae, foreign keys, these are the building blocks of DBMSes as classes and objects are of O-O programming. ...
    (comp.lang.java.databases)