Re: 2 Combo Boxes

From: Richard Connell (RichardConnell_at_discussions.microsoft.com)
Date: 11/23/04


Date: Tue, 23 Nov 2004 15:07:03 -0800

I understand the logic but I cannot get to grips with the programming. Could
you send me the code using the following template so I can figure it out.

Combo box 1 allows the user to select 10 machines.machine1 -> machine 10.
Once the user has selected the machine in combo box 1 they will go to combox
box 2 which will now have a list of machine parts in the list. ie. If they
select machine1 in combo box 1 then combo box 2 will have the following
choices eg. machine1_part1 -> machine2_part2 -> machine3_partZ. If they have
selected machineX in the first combox box then the "code" will list all the
parts from machinex table.

All of the different machines are in one table on their own
All the parts of machine1 are in a different table on their own
All the parts of machineX are in a different table on their own.

I know this sounds dum but it would be very nice if you could send me an
example of the code

Thanks Marshall

"Marshall Barton" wrote:

> Richard Connell wrote:
>
> >Hi - I have 2 combo boxes at the start of a form. The first one allows the
> >user to selct one of 10 different machines on our factory. How I can set up
> >the second combo box such that it will display a different list for each
> >value that may be selected in the first combo box. The second combox box will
> >have a list of different parts of a machine and since each part is different
> >the values displayed in the second combo box must be updated when the first
> >combo box is selected and is it possible to prevent the user from accessing
> >the second box before they have selected a value from the first box. HELP.
>
>
> See http://www.mvps.org/access/forms/frm0028.htm
>
> --
> Marsh
> MVP [MS Access]
>



Relevant Pages

  • DropDown Combo
    ... CALLBACK I add options for the combox box in the WM_INITDIALOG message. ... combo box "down arrow" THE DROPDOWN LIST DOES NOT DISPLAY, ... thru the option by use of the arrow keys. ...
    (microsoft.public.win32.programmer.ui)
  • Re: Get value of ComboBox column into text box without displaying ComboBox
    ... I do not want to display the ... The command =TeamMemberID.Columnworks when ... the combox box is on the form, but not when I delete it. ... has been a complete waste trying to figure this out! ...
    (microsoft.public.access.formscoding)
  • show items when combox is displayed
    ... I have a JComboBox component with say 50 items. ... I want to display the first ... the combox only show one line. ... Johan ...
    (comp.lang.java.gui)