vaibhav2015
Registered User.
- Local time
- Today, 23:48
- Joined
- Sep 15, 2015
- Messages
- 25
Hi,
can you please advice how I can disable fields in access.
I want to disable fields as per combo box selection. (option-"vc";"non-vc")
I tried below codes but other fields are still enabled. I want to disable that tields based on combo box option.
Private Sub Mat_type_AfterUpdate()
If Me.Mat_type.Value = "VC" Then
Me.Curr.Enabled = False
Me.TP.Enabled = False
Me.Plant.Enabled = True
Me.Plant.SetFocus
End If
End Sub
can you please advice how I can disable fields in access.
I want to disable fields as per combo box selection. (option-"vc";"non-vc")
I tried below codes but other fields are still enabled. I want to disable that tields based on combo box option.
Private Sub Mat_type_AfterUpdate()
If Me.Mat_type.Value = "VC" Then
Me.Curr.Enabled = False
Me.TP.Enabled = False
Me.Plant.Enabled = True
Me.Plant.SetFocus
End If
End Sub