Dialog Box Help

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to create a dialog box to search by customer name, order date,
and as a third option, show total orders for the selected customer. I have
three list boxes that function well separately. I have heard that you can
stack these listboxes and by using an option group, make each one active as
selected. Does this make sense? Is there some way to use some of the built in
wizards to make this happen? I was hoping someone could give me some
direction.
 
I have heard that you can
stack these listboxes and by using an option group, make each one active as
selected.

by "stacking", do you mean put all three controls in the same place, one on
top of another, so that you can see only one at a time? it's easy enough to
do this with an option group. let's say you have an option group control,
i'll call it grpChoose. the option buttons' values are 1, 2, and 3,
respectively. the listboxes are called List1, List2, and List3. you can set
the Visible property of the listbox controls on the Click event of the
option group with the following code, as

Me!List1.Visible = (Me!grpChoose = 1)
Me!List2.Visible = (Me!grpChoose = 2)
Me!List3.Visible = (Me!grpChoose = 3)

hth
 
Thank you, that's perfect.

tina said:
by "stacking", do you mean put all three controls in the same place, one on
top of another, so that you can see only one at a time? it's easy enough to
do this with an option group. let's say you have an option group control,
i'll call it grpChoose. the option buttons' values are 1, 2, and 3,
respectively. the listboxes are called List1, List2, and List3. you can set
the Visible property of the listbox controls on the Click event of the
option group with the following code, as

Me!List1.Visible = (Me!grpChoose = 1)
Me!List2.Visible = (Me!grpChoose = 2)
Me!List3.Visible = (Me!grpChoose = 3)

hth
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Problem on loading a dialog box. 5
Text box question 6
Combo box synch question 2
Add <ALL> to combo box 9
Sorting day names chronologically 5
Tabs dialog box 5
macro help 2
Enter Parmeter Dialog Box 1

Back
Top