gamersrant
November 19th, 2007, 06:24 PM
I am working on a report that has the group header split in two. The second header needs to be invisible until people drill down to the next level. To do this I put the following formula on the suppress section of the header:
if (drilldowngrouplevel = 0) then formula = yes else formula = no
The formula works fine in crystal but whenever I try to view the report in VB crystal viewer in a VB application I get this message:
http://i158.photobucket.com/albums/t96/gamersrant/Untitled-1copy.jpg
I don't understand why it has a problem with the formula. I set the syntax for all formulas on the report to basic syntax and set default value for nulls. Does anyone have any ideas why this may be happening. Even when I changed the code to use an elseif statement like this:
if (drilldowngrouplevel = 0) then
formula = yes
elseif (drilldowngrouplevel <> 0) then
formula = no
end if
the message says that it is expecting a number, currency amount, date, time, etc... after this part of the code
'if (drilldowngrouplevel = 0) then
'
if (drilldowngrouplevel = 0) then formula = yes else formula = no
The formula works fine in crystal but whenever I try to view the report in VB crystal viewer in a VB application I get this message:
http://i158.photobucket.com/albums/t96/gamersrant/Untitled-1copy.jpg
I don't understand why it has a problem with the formula. I set the syntax for all formulas on the report to basic syntax and set default value for nulls. Does anyone have any ideas why this may be happening. Even when I changed the code to use an elseif statement like this:
if (drilldowngrouplevel = 0) then
formula = yes
elseif (drilldowngrouplevel <> 0) then
formula = no
end if
the message says that it is expecting a number, currency amount, date, time, etc... after this part of the code
'if (drilldowngrouplevel = 0) then
'