sql server - Conditional Format Detail Row If Record Exists In Another Table -
i trying create report in crystal reports using 2 database tables. first table includes employee information (employeeid, firstname, lastname, etc.), , second table contains training information (trainingid, dateoftraining, employeeid).
the employeeid field training contains values employees.
what want display list of employees. if employeeid present in training (trainingid passed variable report.), highlight row (e.g. -that row bold.)
in other words, if record exists in both table , table b, make record bold. otherwise leave plain text. i'm unsure how conditionally format this.
assuming have left outer join {employee.employeeid} {training.employeeid} can check if {training.employeeid} null:
find field(s) want make bold → right-click , select "format text" → go "font" tab → enter formula "style" clicking "x-2" button right → enter formula if isnull({train.employeeid}) crregular else crbold
if there no corresponding entry in train table particular employee, font regular, otherwise bold.
Comments
Post a Comment