Hi,
I am working on a database for my job and having an issue. What I need to do is add a column on a report based on a date. Sounds easy but here's the sticking point since the report is displayed in acPreview Access will not allow me to programmatically set the control source for the column.
If I add the column in design mode and show or hide the column per the date passed through from the form that calls the report then the format of the report is screwed up and that's a no no here. We are sticklers for our formatting. The other options that I can think of all require me to set the control source in the report.
The one way I can think to do this is write the report so it's dynamic - i.e. create the report in the code...unless someone here knows how to somehow set the control source of a column in a report without actually setting it in the report??
I am working on a database for my job and having an issue. What I need to do is add a column on a report based on a date. Sounds easy but here's the sticking point since the report is displayed in acPreview Access will not allow me to programmatically set the control source for the column.
If I add the column in design mode and show or hide the column per the date passed through from the form that calls the report then the format of the report is screwed up and that's a no no here. We are sticklers for our formatting. The other options that I can think of all require me to set the control source in the report.
The one way I can think to do this is write the report so it's dynamic - i.e. create the report in the code...unless someone here knows how to somehow set the control source of a column in a report without actually setting it in the report??