I have created a command button on my form which allows the printing of the current record in this case an Inspection record. It all words fine however I also have code in the form such that if the item has passed inspection, the fields following it are no longer enabled. Which again works. The code for this is:
Has anyone any ideas please where i am going wrong.
Many Thanks
Clive
Private Sub Passed_Click()
If Passed.Value = False Then
Fault_Code.Enabled = True
Comments.Enabled = True
Else: Fault_Code.Enabled = False
Comments.Enabled = False
Similarly if this item has passed inspection I want to be able to disable the command button which allows printing named "PRTReport" but when I enter code such me.PRTReport.Enabled=False or simply PRTReport.Enabled=False. The code fails when the form reaches the passed check box. If Passed.Value = False Then
Fault_Code.Enabled = True
Comments.Enabled = True
Else: Fault_Code.Enabled = False
Comments.Enabled = False
Has anyone any ideas please where i am going wrong.
Many Thanks
Clive