Column shown dynamically in datasheet form or List box as per the availability of data in crosstab query

ahmad_rmh

Member
Local time
Today, 10:40
Joined
Jun 26, 2022
Messages
243
I want to make datasheet form or List box but the columns should have to be shown in datasheet form or List box dynamically as per the availability of data in cross tab query.


suggest please.
 
Easiest way is to have a subform control on a form and set its source object to

query.mycrosstabqueryname
 
Easiest way is to have a subform control on a form and set its source object to

query.mycrosstabqueryname

Doing in the same way but as the new data columns added in cross tab query the sub form just showing the old columns and not adding the new columns.
 
can you set the SourceObject of the subform to the query.yourQueryName?

//already in post#2
 
the sub form just showing the old columns and not adding the new columns
In that case you are not doing what was suggested
 
Easiest way is to have a subform control on a form and set its source object to

query.mycrosstabqueryname

thanks CJ, & Arnel, Done & Solved,

Now I want to implement the same way in report.

How to implement?
 
the same way as in Form, you add a SubForm and on the Open Event of the Report, set the SourceObject of the SubForm.

It just show datasheet form in report view, I want to show as a report view.
 

Users who are viewing this thread

Back
Top Bottom