I have a report with a subreport. I want to change the subreport's source object based on a couple of criteria, like this:
If Right([DTACTIONFAIL], 6) <> "credit" And Right([DTACTIONFAIL], 11) <> "Replacement" Then
Me.DTScanFAIL.SourceObject = Form.DTSCanEmpty
End If
I tried this on both the ON FORMAT and ON PRINT areas of the parent report's Detail section. I get 'Object required'. Should I change the subreport's source object somewhere else?
Robert
If Right([DTACTIONFAIL], 6) <> "credit" And Right([DTACTIONFAIL], 11) <> "Replacement" Then
Me.DTScanFAIL.SourceObject = Form.DTSCanEmpty
End If
I tried this on both the ON FORMAT and ON PRINT areas of the parent report's Detail section. I get 'Object required'. Should I change the subreport's source object somewhere else?
Robert