Skip to Content
0
Former Member
Feb 06, 2011 at 10:44 PM

ERROR: the result of the selection formula must be a boolean

575 Views

Hi Guys,

I am new at Crystal report and want to do is to ask the user to include a value and if the inventory < that value just highlight the line in blue, what I did was to create a Parameter Field, to ask the user for the value, then I when to Report-> Select Expert and created this code:

if (not HasValue({?Inventory}) and {Inventory.Quantity} < {?Inventory}) then

crAqua

else

crNoColor

but I keep getting this error message: "the result of the selection formula must be a boolean"

as far as I know is asking me for a True or false value but I don't know how to solved,

Any help will be appreciated