A
Avid Fan
I have a form with 2 address physical address and Mailing address.
Frequently the two are the same thing.
So I want to have a button that copies the data across.
Private Sub cmdCopy_Click()
Me.Address2.Text = Me.Address1
Me.cboSuburb2.Text = Me.cboSuburb1.Text
Me.State2.Text = Me.State1.Text
End Sub
Does not work I get an error 2185 that says
"You can't reference a property or method of a control if the control
does not have focus"
Any ideas?
Frequently the two are the same thing.
So I want to have a button that copies the data across.
Private Sub cmdCopy_Click()
Me.Address2.Text = Me.Address1
Me.cboSuburb2.Text = Me.cboSuburb1.Text
Me.State2.Text = Me.State1.Text
End Sub
Does not work I get an error 2185 that says
"You can't reference a property or method of a control if the control
does not have focus"
Any ideas?