K
Kurt
I maintain a database and set-up a form to have my team enter data. I used
visual basic to add enhancements to a form where if they clicked a check box,
certain other fields would not be available. Problem is they seem to get an
error when they check the box, however I do not as the administrator of the
database.
Here is the VB code:
Private Sub Check42_Click()
'Event Procedure when Non-deficiency box is checked
If Check42.Value = True Then
'Sets combo boxes to N/A
Remediated.Value = "N/A"
[Updated Rating].Value = "N/A"
Remediated.Enabled = False
[Updated Rating].Enabled = False
Else
Remediated.Enabled = True
[Updated Rating].Enabled = True
Remediated.Value = Null
[Updated Rating].Value = Null
End If
End Sub
_____________________________________________________________________________________________
Sub form_current()
If Check42.Value = True Then
Remediated.Enabled = False
[Updated Rating].Enabled = False
Can someone let me know if I have any errors in this visual basic code that
could be causing the Access error and forcing my team to shut down Access.
visual basic to add enhancements to a form where if they clicked a check box,
certain other fields would not be available. Problem is they seem to get an
error when they check the box, however I do not as the administrator of the
database.
Here is the VB code:
Private Sub Check42_Click()
'Event Procedure when Non-deficiency box is checked
If Check42.Value = True Then
'Sets combo boxes to N/A
Remediated.Value = "N/A"
[Updated Rating].Value = "N/A"
Remediated.Enabled = False
[Updated Rating].Enabled = False
Else
Remediated.Enabled = True
[Updated Rating].Enabled = True
Remediated.Value = Null
[Updated Rating].Value = Null
End If
End Sub
_____________________________________________________________________________________________
Sub form_current()
If Check42.Value = True Then
Remediated.Enabled = False
[Updated Rating].Enabled = False
Can someone let me know if I have any errors in this visual basic code that
could be causing the Access error and forcing my team to shut down Access.