I have been trying to fine a solution to this all day. I have a master report called:
rptDrawingsRegisterByOrderNum
and a subreport called:
subRrtDrawings.
What I want to do is prompt the user for a date when they open the master report. Then i want to make bold all drawings listed on the subreport where the date they entered is greater than dateReceived (this is on subreport).
I've tried lots of different ways to get around this. First I created a function in a module to assign the date to a textbox in the main report. I'm having trouble referencing the control tho. I'm calling this function in the open event of the report because I only want it called once.
I get an error message saying I can't assign a value to this object.
In the subform I have put the following line in the conditional formatting of a textbox:
This does not seem to be working either. (I tested it by putting a static value in the text box above)
I have a feeling that I am definitely overcomplicating this? Any tips on the best way to approach it??
rptDrawingsRegisterByOrderNum
and a subreport called:
subRrtDrawings.
What I want to do is prompt the user for a date when they open the master report. Then i want to make bold all drawings listed on the subreport where the date they entered is greater than dateReceived (this is on subreport).
I've tried lots of different ways to get around this. First I created a function in a module to assign the date to a textbox in the main report. I'm having trouble referencing the control tho. I'm calling this function in the open event of the report because I only want it called once.
Code:
Me.Controls!txtLatestDate.Value = getDate
I get an error message saying I can't assign a value to this object.
In the subform I have put the following line in the conditional formatting of a textbox:
Code:
Reports![rptDrawingsRegisterByOrderNum]![txtLatestDate]>[DateReceived]
This does not seem to be working either. (I tested it by putting a static value in the text box above)
I have a feeling that I am definitely overcomplicating this? Any tips on the best way to approach it??