checkbox when checked pops up subform - trouble

  • Thread starter Thread starter reservedbcreater
  • Start date Start date
R

reservedbcreater

hi, i wanted a check box - when checked - to pop up and make an invisible
subform visible - when ur done filling out the subforma nd click done it
goes back to the parent form.

i posted b4 and got this reply which didnt work(i dont see the subform,
when i click the check box it doesnt pop up) :

heres my code
-----Original Message-----
im having trouble doing this

i want the subform invisible but when the check box is cliked on the
parent for it pops up

i have the Visible property on the subform to No

here is my code that in on the parent form:

Private Sub Check0_Click()

If Me.Check0 = True Then
Me.subFrm.Visible = True
end sub
 
What error do you get? When you say 'pop up' do you mean that the subform
is, in fact, a separate form that opens in front of the main form?

(I'd also move the code to the after update event as well. The click event
of check boxes is a little strange.)
 
well
it is a seperate form
but i made it a subform by dragging it onto the main form in design mode
see i want it invisible until you do the check box and the disapear when u
click done
 
OK. That should work then. Are you sure that the control name of the
subform is subFrm? That's not necessarily the name of the actual form that
is the basis of the subform.
 
You're not naming your subform. You're renaming the control on the main
form that holds the subform. A subtle but very important difference.

Open the main form in design view, click on the subform control, use View,
Properties to see the list of properties. On the 'Other' tab, set the Name.
 
Back
Top