im trying to change the caption of a label based on a combo box using this code below:
Code: Select all
If Me.cboZone.Text = "in camp" Then
Me.lblTentHouse.Caption = " Tent No "
Else
Me.lblTentHouse.Caption = " House No"
End If
i want to change the caption of the label when the form load or current event of the form
but i get this error:
You can not reference a property or method for a control unless the control has the focus
any help please