I need to build a VBA for the following question: Any Criminal History? I would like to have a pop up box that opens when client select the yes button, which will give client the ability to write their criminal history.
Ok, there is a short answer and a long answer. Here is the short answer:
Code:
Private Sub MyCheckbox_Click()
If Me.MyCheckbox.Value = True Then
DoCmd.OpenForm "YourInputForm", acNormal
End If
End Sub
The short answer doesn't take into account how the information will be updated to the table - all it does is pop open another form in which you can include a memo box for them to fill it out. There are a couple different ways to accomplish this, but I am not sure of your table structure and your breadth of VBA knowledge.
But if you need the long answer, let me know and I will do what I can do.
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.