I manage a database which lists possible business leads. Each lead's priority is measured as either 'Daily', 'Weekly' or 'Monthly'. I then produce a report which displays the leads according to which priority is required, as defined by the control Me!PriorityFilter on the ReportSwitch Form.
My problem is that I want a text box to display what the priority is on the report. In the report, I have created a TextBox, PriorityTxt which is unbound. I then have the following code to open the :
DoCmd.OpenReport "ActiveLeadsCond", acViewPreview, , Me!PriorityFilter
Reports!ActiveLeadsCond!PriorityTxt = Forms!ReportSwitch!PriorityTxt
However, it doesn't work. I've checked with a watch and note that on the second line of the above code I check that the left hand side equals 'Null' whilst the right hand side equals 'Monthly', yet the PriorityTxt never takes that value on board.
Thank you for your time.
My problem is that I want a text box to display what the priority is on the report. In the report, I have created a TextBox, PriorityTxt which is unbound. I then have the following code to open the :
DoCmd.OpenReport "ActiveLeadsCond", acViewPreview, , Me!PriorityFilter
Reports!ActiveLeadsCond!PriorityTxt = Forms!ReportSwitch!PriorityTxt
However, it doesn't work. I've checked with a watch and note that on the second line of the above code I check that the left hand side equals 'Null' whilst the right hand side equals 'Monthly', yet the PriorityTxt never takes that value on board.
Thank you for your time.