G
Guest
Hello and Thanks for the Help in Advance.
I am working with Sub Reports in Access 2002.
I have VBA code in the Main Report which gives a %. It is
calling a field on a sub report. The problem is sometimes
there is no data on this sub report so I get 2 errors
Error "Run-time error '2427':
You entered an expression that has no value."
Then I get "Compile error:
Variable not defined"
Here is one of the lines it is failing on.
PercentComm = ***(Nz(Sub_JobsProducedComm!TPrice, 0)*** +
Nz(Sub_NoPOrderedComm!TPrice, 0)) / Nz(Sub_QTOCComm!
TPrice, 0)
It fails in between the ***
Any Help would be appreciated.
Thanks, Leo Snetsinger
I am working with Sub Reports in Access 2002.
I have VBA code in the Main Report which gives a %. It is
calling a field on a sub report. The problem is sometimes
there is no data on this sub report so I get 2 errors
Error "Run-time error '2427':
You entered an expression that has no value."
Then I get "Compile error:
Variable not defined"
Here is one of the lines it is failing on.
PercentComm = ***(Nz(Sub_JobsProducedComm!TPrice, 0)*** +
Nz(Sub_NoPOrderedComm!TPrice, 0)) / Nz(Sub_QTOCComm!
TPrice, 0)
It fails in between the ***
Any Help would be appreciated.
Thanks, Leo Snetsinger