Jeanette, thanks for the advice. Your assumptions are correct- I have
several combo boxes and many nested tabs. I would love to know how to
implement your suggestion of loading/unloading controls based on what tab is
active. Can you please explain? I'm pretty amateur with coding.
Thanks,
Jeff
Jeff,
here's how to do it with a combo.
in design view of the form, click on the combo to select it, and open the
property dialog if it's not already open.
On the data tab, take a note of the query - copy and paste it into word or
similar.
Then delete the row source for the combo.
Move to the Events tab of the property dialog.
Go down to the list and find On Enter.
Click the button with the ellipsis(...) and choose Code builder, then OK.
The code window will open ready to put in the rowsource for the combo.
The code needs to look something like this:
Private Sub ComboName_Enter()
Me.ComboName = "a"
End Sub
Replace the letter 'a' in "a" with the rowsource you copied and pasted into
word.
Save and compile the code.
Open the form normally test this combo to see if it works correctly.
If not correct any errors.
Repeat for the next combo, . . . .
Jeanette Cunningham -- Melbourne Victoria Australia
> Jeanette, thanks for the advice. Your assumptions are correct- I have
> several combo boxes and many nested tabs. I would love to know how to
[quoted text clipped - 46 lines]
>> >
>> > Jeff
Jeanette Cunningham - 14 May 2008 22:20 GMT
ps
Previous reply was in too much of a hurry.
replace
Private Sub ComboName_Enter()
Me.ComboName = "a"
End Sub
with
Private Sub ComboName_Enter()
Me.ComboName.RowSource = "a"
End Sub
Use the real name of your combo instead of ComboName
Jeanette Cunningham -- Melbourne Victoria Australia
> Jeff,
> here's how to do it with a combo.
[quoted text clipped - 76 lines]
>>> >
>>> > Jeff