Hi
I'm trying to create a report that would display data from different tables with similar structure.
I have some 30 different tables which outline 5 different products for different years. It is impossible to put all of them in one big table since each of them are used by different department and hence have different field structures.
All of them however contain fields which I will try to display in the report. The fields are:
ProductName, Supply, Return, NetSale
Since it would be inefficient to create 30 different reports that would reference to each table, I am thinking to design one single report to display the desired fields and get it to point to different tables using VBA.
From posted threads, I know it is possible to modify the RecordsSource property using VBA on open report event. However, until now, I still am not able to get it working.
Can someone help?
Cheers
I'm trying to create a report that would display data from different tables with similar structure.
I have some 30 different tables which outline 5 different products for different years. It is impossible to put all of them in one big table since each of them are used by different department and hence have different field structures.
All of them however contain fields which I will try to display in the report. The fields are:
ProductName, Supply, Return, NetSale
Since it would be inefficient to create 30 different reports that would reference to each table, I am thinking to design one single report to display the desired fields and get it to point to different tables using VBA.
From posted threads, I know it is possible to modify the RecordsSource property using VBA on open report event. However, until now, I still am not able to get it working.
Can someone help?
Cheers