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

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

VicRauch

Well-known Member
Joined
Mar 23, 2006
Messages
2,032
Make the SubForm Control hidden.

Forms!MyForm!MySubFormControl.Visible = False
 
Upvote 0

eric.l.bohon

Board Regular
Joined
May 8, 2006
Messages
149
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,191,548
Messages
5,987,215
Members
440,085
Latest member
MBecker79

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
Top