murgatroyd
Registered User.
- Local time
- Tomorrow, 03:18
- Joined
- Mar 26, 2016
- Messages
- 31
I have a form and a report in Access 2010 that both do essentially the same thing: they both use the same query as a data source, and they both list the same fields.
I have added conditional formatting to several of the fields in both the form and the report, and this works in both the form and the report, except for one field, where the same conditional formatting expression works in the form but not in the report. (It's not a typo, as I copied/pasted the conditional formatting expressions from the form to the report.)
Expression is
[OrderType]=2
And [Size]>0
And [Size]<=DLookUp("Threshold","dbo_Parameters")
And [Level]=1
And [Item]=DLookUp("Item","dbo_Job","Order=[Index] And JobType=3 And JobStatus=5")
How can I get this to work in the report as it does in the form?
(The issue is not in the data, which contains records that trigger the conditional formatting correctly in the form but not at all in the report. The issue appears to be with the DLookUp function in the last term, because if I remove that term, then the rest of the expression triggers the conditional formatting correctly in the report.)
I have added conditional formatting to several of the fields in both the form and the report, and this works in both the form and the report, except for one field, where the same conditional formatting expression works in the form but not in the report. (It's not a typo, as I copied/pasted the conditional formatting expressions from the form to the report.)
Expression is
[OrderType]=2
And [Size]>0
And [Size]<=DLookUp("Threshold","dbo_Parameters")
And [Level]=1
And [Item]=DLookUp("Item","dbo_Job","Order=[Index] And JobType=3 And JobStatus=5")
How can I get this to work in the report as it does in the form?
(The issue is not in the data, which contains records that trigger the conditional formatting correctly in the form but not at all in the report. The issue appears to be with the DLookUp function in the last term, because if I remove that term, then the rest of the expression triggers the conditional formatting correctly in the report.)
Last edited: