S SUN Registered User. Local time Today, 23:54 Joined Jul 14, 2007 Messages 11 Jan 15, 2009 #1 How to hide main report if there is no data in the subreport?
J James Dudden Access VBA Developer Local time Today, 15:54 Joined Aug 11, 2008 Messages 369 Jan 16, 2009 #2 You will have to test for a null value in the sub report when the form opens then you could hide the detail etc e.g. Sub Form_Open If IsNull(Me!SUBFORM_VALUE) Then Me!Detail.Visible = False Else Me!Detail.Visible = True End if Close Sub That should get you started.
You will have to test for a null value in the sub report when the form opens then you could hide the detail etc e.g. Sub Form_Open If IsNull(Me!SUBFORM_VALUE) Then Me!Detail.Visible = False Else Me!Detail.Visible = True End if Close Sub That should get you started.
S SUN Registered User. Local time Today, 23:54 Joined Jul 14, 2007 Messages 11 Jan 18, 2009 #3 Thanks for your reply. Could you mind elaborate a little bit more as I cannot get it work
wiklendt i recommend chocolate Local time Tomorrow, 02:54 Joined Mar 10, 2008 Messages 1,746 Mar 26, 2009 #4 SUN, you need to provide more detail. what have you tried and what is it doing if not the right thing? that is - HOW is it "not working" - are you receiving any error messages? have you got the code in the right place? etc etc
SUN, you need to provide more detail. what have you tried and what is it doing if not the right thing? that is - HOW is it "not working" - are you receiving any error messages? have you got the code in the right place? etc etc