J.J. said:
here what i want: i have a form and subform. they both have number_id field
and then i get data from another table in the subform reffering to number_id
on main form. now i want that the subform is not visible when it's number_id
field is null. where should i put the code?
on subform or main form?
Sorry, I still don't understand. If the subform control's
Link Master/Child properties are both set to the number_id
field, then the only way you can get a Null value in the
subform's number_id field is if there are no records in the
subform. Further more, if there are no records in the
subform, then the only thing it will display is the area to
allow a new record to be entered. Making the subform
invisible in ths situation will make it impossible to create
new records. If that's what you want, then just set the
subform's AllowAdditions property to No and it will
automatically disappear when there's no data for it to
display.