wehoscottward
Registered User.
- Local time
- Yesterday, 21:24
- Joined
- Aug 30, 2013
- Messages
- 36
Hello.
I’m having a problem with making a textbox visible on a form if a checkbox is checked on the same form. I have done research on this site and have written the code below, but I’m getting a Syntax error—see yellow highlight.
· My checkbox is named: Case is a Readmission from WRCA IP to WRCA IP
· My textbox is named: Date of Current IP Admission (I have defaulted this textbox to not visible).
Here’s the code I have written:
Private Sub Case_is_a_Readmission_from_WRCA_IP_to_WRCA_IP_Click()
If Case is a Readmission from WRCA IP to WRCA IP =true then
Date of Current IP Admission.visible=true
Else
Date of Current IP Admission.visible=false
End If
End Sub
Private Sub Form_Current()
If Case is a Readmission from WRCA IP to WRCA IP =true then
Date of Current IP Admission.visible=true
Else
Date of Current IP Admission.visible=false
End If
End Sub
If anyone can help, I’d be very appreciative.
Many thanks,
Scott
I’m having a problem with making a textbox visible on a form if a checkbox is checked on the same form. I have done research on this site and have written the code below, but I’m getting a Syntax error—see yellow highlight.
· My checkbox is named: Case is a Readmission from WRCA IP to WRCA IP
· My textbox is named: Date of Current IP Admission (I have defaulted this textbox to not visible).
Here’s the code I have written:
Private Sub Case_is_a_Readmission_from_WRCA_IP_to_WRCA_IP_Click()
If Case is a Readmission from WRCA IP to WRCA IP =true then
Date of Current IP Admission.visible=true
Else
Date of Current IP Admission.visible=false
End If
End Sub
Private Sub Form_Current()
If Case is a Readmission from WRCA IP to WRCA IP =true then
Date of Current IP Admission.visible=true
Else
Date of Current IP Admission.visible=false
End If
End Sub
If anyone can help, I’d be very appreciative.
Many thanks,
Scott