caykamanj1966
Technical User
All, I am building a database to help with my Business. I couldn't find any software that would work, based on the requirements I needed, so I decided to build my own in Access.
With that being said, here is something I want to do.
I have a Query (qry_Expenses) that will be tied to a report, called: rpt_ExpRpt
I have a field that is in this Query called: companyName. In this field there is a list companies.
I will have a button on a form, that when clicked I want it to give me the choice to pick a company (i.e Comcast) and based on that choice, it will open the report (rpt_ExpRpt), but before the report is opened, it will automatically change the "Criteria" property to "Comcast" and when the report is opened it will filter and show only the Comcast records.
Also, when that is done, I also need to change the label for the Type field: Caption property, to whatever report will be displayed. So for instance for this Comcast report, I want the Caption property (type field) to say: Comcast expenses for year, and if it would be a report that I want all records for Home Depot, then it would say: Home Depot expenses for year. I want that to also change on this report that is to be displayed.
Can someone help me with this?
It will surely be appreciated and thank you all in advance.
With that being said, here is something I want to do.
I have a Query (qry_Expenses) that will be tied to a report, called: rpt_ExpRpt
I have a field that is in this Query called: companyName. In this field there is a list companies.
I will have a button on a form, that when clicked I want it to give me the choice to pick a company (i.e Comcast) and based on that choice, it will open the report (rpt_ExpRpt), but before the report is opened, it will automatically change the "Criteria" property to "Comcast" and when the report is opened it will filter and show only the Comcast records.
Also, when that is done, I also need to change the label for the Type field: Caption property, to whatever report will be displayed. So for instance for this Comcast report, I want the Caption property (type field) to say: Comcast expenses for year, and if it would be a report that I want all records for Home Depot, then it would say: Home Depot expenses for year. I want that to also change on this report that is to be displayed.
Can someone help me with this?
It will surely be appreciated and thank you all in advance.