W
wilsy
Hi all,
Apologies in advance if this is something simple, I am a complete newbie to
Access (3 days!). I need to disable four command buttons on a subform (not
continuous) depending on the selection of a combo box. I have the code below
'on current' (form) and 'on update' for the combo.
Each command button's function is to preview a report, which is based on a
query. The command buttons are disabling just fine but fail to function when
multiple records exist. No error is produced, but the report simply does not
preview.
I have spent hours trawling through the forums and I am certain the answer
already exists, its just that I cant find it )-:
Thanks in anticipation,
Rick.
If Me.[Intervention Type] = "Verbal" Then
Me.[verb let].Enabled = True
Else
Me.[verb let].Enabled = False
End If
If Me.[Intervention Type] = "ABC" Then
Me.[abc letter].Enabled = True
Else
Me.[abc letter].Enabled = False
End If
If Me.[Intervention Type] = "ABC" Then
Me.[abc].Enabled = True
Else
Me.[abc].Enabled = False
End If
If Me.[Intervention Type] = "Exclusion" Then
Me.[exc let].Enabled = True
Else
Me.[exc let].Enabled = False
End If
Apologies in advance if this is something simple, I am a complete newbie to
Access (3 days!). I need to disable four command buttons on a subform (not
continuous) depending on the selection of a combo box. I have the code below
'on current' (form) and 'on update' for the combo.
Each command button's function is to preview a report, which is based on a
query. The command buttons are disabling just fine but fail to function when
multiple records exist. No error is produced, but the report simply does not
preview.
I have spent hours trawling through the forums and I am certain the answer
already exists, its just that I cant find it )-:
Thanks in anticipation,
Rick.
If Me.[Intervention Type] = "Verbal" Then
Me.[verb let].Enabled = True
Else
Me.[verb let].Enabled = False
End If
If Me.[Intervention Type] = "ABC" Then
Me.[abc letter].Enabled = True
Else
Me.[abc letter].Enabled = False
End If
If Me.[Intervention Type] = "ABC" Then
Me.[abc].Enabled = True
Else
Me.[abc].Enabled = False
End If
If Me.[Intervention Type] = "Exclusion" Then
Me.[exc let].Enabled = True
Else
Me.[exc let].Enabled = False
End If