Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combobox to combobox

Status
Not open for further replies.

HansD

Programmer
Feb 12, 2002
60
NL
hello everybody

I have a small question:

i have a form with a subform
on the main form i have a combobox(Cbo1)
on the child form i have a combobox(Cbo2)and a button

now i want to pass the data from Cbo2 to Cbo1 when i press the button, the comboboxes should be exactly the same

Tnx

Hans
 
How are ya HansD . . . . .

In the [blue]OnClick event[/blue] of your button try (you substitute proper names in [purple]purple[/purple]):

Code:
[blue]Forms![purple][b]MainFormName[/b][/purple]![purple][b]Cbo1Name[/b][/purple].RowSource = Me![purple][b]Cbo2Name[/b][/purple].RowSource[/blue]

Calvin.gif
See Ya! . . . . . .
 
Tnx for your reaction TheAceMan1.

I will try it tommorrow because i have to go now.
I will let you know how it worked out


Hans
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top