subform question

eric.l.bohon

Board Regular
Joined
May 8, 2006
Messages
149
Question. Have a form with multiple subforms in it. Now the subforms are based off different querys. What I am trying to do is if one of the querys does not have any info in it, then the subform based off that query on the form disapears and shows what is behind it. when I test it on the query and go back to the form it goes away but leaves a white box instead of showing whats behind it. I even have tried the can shrink and that did not work. can anyone help me with this.
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Make the SubForm Control hidden.

Forms!MyForm!MySubFormControl.Visible = False
 
Upvote 0
if this is a vba, not realy good with them. how do i get it to reconize the subform. one of my subform is named SUBFORM HOSPITAL/QTRS.
 
Upvote 0

Forum statistics

Threads
1,214,789
Messages
6,121,590
Members
449,039
Latest member
Arbind kumar

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