简体   繁体   中英

How to solve the error in Crystal report Formula Editor

    totext(count({Emp.Name},{Sal.Name}),"#,###")+" "+if count ({Emp.Name},
{Sal.Name})<>1 then {Sal.Name} + " Accounts" else

    {Sal.Name}+" Account"

There must be a group that matches this field. Error in Formula Group count.

Above report query - Emp.Name and Sal.Name fields datatypes are varchar . Values are loaded correctly in print preview. But error throw on runtime .

Please help this issue. Thanks for Advance..!

This line of code count({Emp.Name},{Sal.Name}) means you are trying to count the employee name with respect to the sal.name group, hence this error.

Go to Insert --> group --> In window select sal.name which will create a group for you.

once group is created then check the formula

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM