Good Afternoon
I want to disable a field (ClientGender)in a form (called frmSales) if ClientType does not = "Private Individual" , iv done this before and remeber it to be reasonably simple but that was a while ago and im afraid iv forgotten nearly all i knew about VB (i was never that good at it to begin with)
i built a BeforeUpdate event that goes like
i read somewhere that this needs to be put in two locations? On Current event i beleve
firstly is this code correct/acceptable, secondly where would i find (or type in) the On Current event code?
thank you for any assistance
I want to disable a field (ClientGender)in a form (called frmSales) if ClientType does not = "Private Individual" , iv done this before and remeber it to be reasonably simple but that was a while ago and im afraid iv forgotten nearly all i knew about VB (i was never that good at it to begin with)
i built a BeforeUpdate event that goes like
Code:
Private Sub ClientGender_BeforeUpdate()
If ClientType = "Private Individual" Then
ClientGender.Enabled = True
Else
ClientGender.Enabled = False
End Sub
i read somewhere that this needs to be put in two locations? On Current event i beleve
firstly is this code correct/acceptable, secondly where would i find (or type in) the On Current event code?
thank you for any assistance
Last edited: