ms access - How do I insert a subreport into my report using VBA -


alright have 4 subreports have data source.

(sureport | data source)

(subreport1 | query1) (subreport2 | query2) (subreport3 | query3) (subreport4 | query4)

and on...

when open report, want check if query1, 2, 3 , 4 exists , based on that, add right subreports main report.

i'm new access , don't know start. best approach problem?

thank you.

set visibility of subreports based on hasdata property of each.

private sub detail_format(cancel integer, formatcount integer)     if me.table_subreport.report.hasdata         me.table_subreport.visible = true     else         me.table_subreport.visible = false     end if end sub 

Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -