Nice day for all of you,
I have a problem using Createcontrol method with Vba. In fact, i would like to add to my form a label once a desired value is selected from a combobox.
here is my code, i didn't match where is the problem exactly:
Sub NewControls()
Dim iwb As Control
Set iwb = CreateControl(Me.Form, acLabel, , Me.Carrier.Name, 100, 100)
End Sub
Private Sub Carrier_AfterUpdate()
If Me.Carrier.Column(1) = "FedEx" Then
NewControls
End If
End Sub
Thanks in Advance
I have a problem using Createcontrol method with Vba. In fact, i would like to add to my form a label once a desired value is selected from a combobox.
here is my code, i didn't match where is the problem exactly:
Sub NewControls()
Dim iwb As Control
Set iwb = CreateControl(Me.Form, acLabel, , Me.Carrier.Name, 100, 100)
End Sub
Private Sub Carrier_AfterUpdate()
If Me.Carrier.Column(1) = "FedEx" Then
NewControls
End If
End Sub
Thanks in Advance