soundsfishy
Registered User.
- Local time
- Today, 10:02
- Joined
- Sep 25, 2002
- Messages
- 174
I have 2 Contractors that dont supply Accommodation. Ive managed to write the following for "GECC" but im not sure how to include "SVDP". So if " GECC" or"SVDP" are selected as the contractors to supply accommodation, the 3 bound fields become disabled.
I know its something simple but I havent done any VBA course to know how simple the solution is. Please help a dummy someone!! hehe.
Private Sub Contractor_AfterUpdate()
If Me![Contractor] = "GECC" Then
Me![DIMAFlatAddress].Enabled = False
Me![DateDepart].Enabled = False
Me![DepartAddress].Enabled = False
Else
Me![DIMAFlatAddress].Enabled = True
Me![DateDepart].Enabled = True
Me![DepartAddress].Enabled = True
End If
EndSub
I know its something simple but I havent done any VBA course to know how simple the solution is. Please help a dummy someone!! hehe.
Private Sub Contractor_AfterUpdate()
If Me![Contractor] = "GECC" Then
Me![DIMAFlatAddress].Enabled = False
Me![DateDepart].Enabled = False
Me![DepartAddress].Enabled = False
Else
Me![DIMAFlatAddress].Enabled = True
Me![DateDepart].Enabled = True
Me![DepartAddress].Enabled = True
End If
EndSub