PC Review


Reply
Thread Tools Rate Thread

Can I set up cascading combo boxes in a TABLE?

 
 
Debi
Guest
Posts: n/a
 
      13th Dec 2009
I am setting up a database for a research project. I would like to enter the
data within the table as it is easier to see everything together.

I have a combo box for General Injury Region, which is upper extremity,
lower extremity, spine. I would like to the second combo box populate based
on the first with shoulder, hand, wrist, etc.

Thanks in advance!
 
Reply With Quote
 
 
 
 
Rick Brandt
Guest
Posts: n/a
 
      13th Dec 2009
Debi wrote:

> I am setting up a database for a research project. I would like to enter
> the data within the table as it is easier to see everything together.
>
> I have a combo box for General Injury Region, which is upper extremity,
> lower extremity, spine. I would like to the second combo box populate
> based on the first with shoulder, hand, wrist, etc.
>
> Thanks in advance!


No, Use a form.
 
Reply With Quote
 
Philip Herlihy
Guest
Posts: n/a
 
      13th Dec 2009
Warning: your first paragraph makes it sound as if you're thinking in
spreadsheet idiom. Databases are different, and in many ways much more
powerful. The key is understanding how to structure your data, and it's
vital to get that right first. Here are a few links to get you started:

Free samples from Lynda.com on table design:
http://www.lynda.com/home/Player.aspx?lpk4=31001 (A2007)
http://www.lynda.com/home/Player.aspx?lpk4=13150 (A2003)

Microsoft tutorial on table design:
http://bit.ly/ms-access-tables-tutorial

You can also find video tutorials on many Access topics (e.g. Combo Box) by
Googling.

Back to the question!. Don't be tempted to use "Lookup Fields" in tables -
there are lots of reasons why experienced Access users never use these. The
typical scenario is to divide your data between a number of tables which
represent distinct "entities" in the world you are modelling. These
entities will be related (e.g. one-to-many, many-to-many) and a record in
one table may include a reference (a "foreign key") to a record in another
to represent these relationships. When data needs to be extracted
selectively or in a particular sort order, queries are used to draw together
related records. Forms (or reports) can be based on these queries. It's
common to have several forms based on the same data tables to support
different uses of the data.

Once you have a suitable query on which to base a form, try using the Form
Wizard. In Access 2007 it's particularly easy - highlight the query which
will form the "Record Source" of your new form, and, in the Create tab,
simply click the Form button (left-most in its group). Bingo - a basic form
for your data. To change one of the text boxes (default) into a combo box,
simply right-click it and pick "Change to..." and pick combo box. You'll
then adjust the combo box's properties appropriately (always Row Source, and
often Number of Columns and Column Widths). It's surprisingly quick and
easy after the first time.

Finally, this article deals with the particular issue you ask about:

http://office.microsoft.com/en-gb/ac...CL100570041033

HTH

Phil, London

"Debi" <(E-Mail Removed)> wrote in message
news:677CC359-67C4-41D5-A771-(E-Mail Removed)...
> I am setting up a database for a research project. I would like to enter
> the
> data within the table as it is easier to see everything together.
>
> I have a combo box for General Injury Region, which is upper extremity,
> lower extremity, spine. I would like to the second combo box populate
> based
> on the first with shoulder, hand, wrist, etc.
>
> Thanks in advance!


 
Reply With Quote
 
Philip Herlihy
Guest
Posts: n/a
 
      13th Dec 2009
Here's a neat video I found on this!

http://www.youtube.com/watch?v=pMiJHhjzC8Y

Phil

"Philip Herlihy" <(E-Mail Removed)> wrote in message
news:O752Hv$(E-Mail Removed)...
> Warning: your first paragraph makes it sound as if you're thinking in
> spreadsheet idiom. Databases are different, and in many ways much more
> powerful. The key is understanding how to structure your data, and it's
> vital to get that right first. Here are a few links to get you started:
>
> Free samples from Lynda.com on table design:
> http://www.lynda.com/home/Player.aspx?lpk4=31001 (A2007)
> http://www.lynda.com/home/Player.aspx?lpk4=13150 (A2003)
>
> Microsoft tutorial on table design:
> http://bit.ly/ms-access-tables-tutorial
>
> You can also find video tutorials on many Access topics (e.g. Combo Box)
> by Googling.
>
> Back to the question!. Don't be tempted to use "Lookup Fields" in
> tables - there are lots of reasons why experienced Access users never use
> these. The typical scenario is to divide your data between a number of
> tables which represent distinct "entities" in the world you are modelling.
> These entities will be related (e.g. one-to-many, many-to-many) and a
> record in one table may include a reference (a "foreign key") to a record
> in another to represent these relationships. When data needs to be
> extracted selectively or in a particular sort order, queries are used to
> draw together related records. Forms (or reports) can be based on these
> queries. It's common to have several forms based on the same data tables
> to support different uses of the data.
>
> Once you have a suitable query on which to base a form, try using the Form
> Wizard. In Access 2007 it's particularly easy - highlight the query which
> will form the "Record Source" of your new form, and, in the Create tab,
> simply click the Form button (left-most in its group). Bingo - a basic
> form for your data. To change one of the text boxes (default) into a
> combo box, simply right-click it and pick "Change to..." and pick combo
> box. You'll then adjust the combo box's properties appropriately (always
> Row Source, and often Number of Columns and Column Widths). It's
> surprisingly quick and easy after the first time.
>
> Finally, this article deals with the particular issue you ask about:
>
> http://office.microsoft.com/en-gb/ac...CL100570041033
>
> HTH
>
> Phil, London
>
> "Debi" <(E-Mail Removed)> wrote in message
> news:677CC359-67C4-41D5-A771-(E-Mail Removed)...
>> I am setting up a database for a research project. I would like to enter
>> the
>> data within the table as it is easier to see everything together.
>>
>> I have a combo box for General Injury Region, which is upper extremity,
>> lower extremity, spine. I would like to the second combo box populate
>> based
>> on the first with shoulder, hand, wrist, etc.
>>
>> Thanks in advance!

>

 
Reply With Quote
 
Philip Herlihy
Guest
Posts: n/a
 
      13th Dec 2009
I've learned not to ignore anything you say, but I don't get that. To fail
3NF, one table would have to have a field whose value was not tied to the
key - can't see it! In the State table, the key is the (only) value - but I
don't think that makes a difference?

One of the benefits of offering answers here is that you get corrected from
time to time!

Phil

"KenSheridan via AccessMonster.com" <u51882@uwe> wrote in message
news:a088e3d5c4288@uwe...
> Apart from the fact that his table is not normalized to Third Normal Form!
>
> Ken Sheridan
> Stafford, England
>
> Philip Herlihy wrote:
>>Here's a neat video I found on this!
>>
>>http://www.youtube.com/watch?v=pMiJHhjzC8Y
>>
>>Phil
>>
>>> Warning: your first paragraph makes it sound as if you're thinking in
>>> spreadsheet idiom. Databases are different, and in many ways much more

>>[quoted text clipped - 51 lines]
>>>>
>>>> Thanks in advance!

>
> --
> Message posted via AccessMonster.com
> http://www.accessmonster.com/Uwe/For...arted/200912/1
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cascading Combo Boxes AFSSkier Microsoft Excel Programming 2 10th Sep 2009 08:18 PM
cascading combo boxes shaz0503 Microsoft Access 2 30th Sep 2008 10:50 AM
Cascading Combo Boxes (Multiple boxes) Adam Microsoft Access Forms 13 9th Jul 2008 07:47 PM
Cascading Combo Boxes--Problems Populating Boxes jerryb123 Microsoft Access 0 13th Jun 2008 03:11 PM
Cascading Combo Boxes =?Utf-8?B?UmFpbg==?= Microsoft VB .NET 1 10th Oct 2007 11:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:03 AM.