Check Box

kparadise

Board Regular
Joined
Aug 13, 2015
Messages
186
Hello,

I currently have a form I am designing in Access. I have a Check Box called [chkboxFollow-UpRequired]; this field is always visible. If the employee is filling out the form, and Follow-up is required, they will click on this check box. On Click; I have code build in to make 6 other fields appear below it.

Private Sub chkboxFollow_UpRequired_Click()
If Me.chkboxFollow_UpRequired = True Then
Me.txtFollow_upValidationOwner.Visible = True
Me.txtMethodofFollowUp.Visible = True
Me.txtFollow_upTestNumber.Visible = True
Me.txtFollow_upTestTargetPublication.Visible = True
Me.txtFollow_upCompletionRequiredby_.Visible = True
Me.txtFollow_upDateCompleted.Visible = True
End If
End Sub


This is working great. What I am trying to do now is; if the employee clicked the box on accident, they will deselect the check box; but those six fields are still there. How do I make those six fields disappeared again when the check box is deselect??
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
I figured it out!

ELSE:
Me.txtFollow_upValidationOwner.Visible = false
Me.txtMethodofFollowUp.Visible = false
Me.txtFollow_upTestNumber.Visible = false
Me.txtFollow_upTestTargetPublication.Visible = false
Me.txtFollow_upCompletionRequiredby_.Visible = false
Me.txtFollow_upDateCompleted.Visible = false
 
Upvote 0

Forum statistics

Threads
1,221,829
Messages
6,162,229
Members
451,756
Latest member
tommyw

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top