OnCick Code

B

Bob V

If I have 2 Combo Boxes on the same form
cmbSource
cmbTarget
What code do I need in OnClick in cmbSource to send any data in that combo
to cmbTarget
Thanks for any help..................Bob
 
B

Bob V

Thanks Lance, But I should have thought before I posted, it is actually a
control in a Subform that I want to click to send date from
cmbSource(SubForm) to cmbTarget...............Thanks for
helping............Bob
 
B

Bob V

Thanks Lance
Private Sub cmdEnterPay_Click()
Forms![frmAccountStatus]![tbModeOfPayment].AddItem
Me.ModeOfPaymentChild.Text
End Sub
I am getting this error:
"You Cant reference propety or Methord for a Control unless the control has
the focus"
Thankds for helping .....Bob

Lance said:
Forms![<<<MAIN FORM NAME>>>]![cmbTarget].AddItem Me.cmbSource.Text

Bob V said:
Thanks Lance, But I should have thought before I posted, it is actually a
control in a Subform that I want to click to send date from
cmbSource(SubForm) to cmbTarget...............Thanks for
helping............Bob
 
Top