Reference Sub Report

Tallbloke

Registered User.
Local time
Today, 22:02
Joined
Aug 17, 2006
Messages
66
Hi Guys,

I can't seem to get this to work....

Code:
If Reports![PackageReportNew]![PackageDayReportNew].Report!IsNull([Arrive2]) Then

Is the syntax correct or does the final! need to be followed by the field name?

Arrive2 is a Date / Time field.

Thanks!
 
The IsNull() needs to surround the entire reference to the report, not just the field name.
 
Like this?

Code:
If IsNull(Reports![PackageReportNew]![PackageDayReportNew].Report![Arrive2]) Then
 
I've re-opened the thread as something isn't quite right. I was using that code to set the .visible property to hide empty fields (they have a border).

Whilst this works in print preview they aren't hidden when I generate a pdf....

Any ideas?
 
I think any formatting that you place in the OnFormat method will be available only in Preview mode !

Try OnLoad Or OnCurrent event. I am not 100% sure about it though.
 
I think any formatting that you place in the OnFormat method will be available only in Preview mode !

Try OnLoad Or OnCurrent event. I am not 100% sure about it though.

The code is in the onload of the report.
 
Are you in Private Sub Detail_Format ? I've certainly used that to hide fields from printing...
 

Users who are viewing this thread

Back
Top Bottom