Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select People missing certain licenses 1

Status
Not open for further replies.

Fadius

IS-IT--Management
Jul 25, 2001
139
US
I am writing a report and only want people displayed which are missing either a state license or a federal license. The people in the database can have multiple licenses. State, Federal, Drivers, CDL, CPR, Etc.

How do I get it to only display a person if they are missing either a state or a federal license. The Licenses are types.


Thank you,
 
Allow all license types into the report. Then insert a group on {table.person}. Create formulas like these:

//{@hasst}:
if isnull({table.license}) or
{table.license} <> "State" then
0 else 1

//{@hasfed}:
if isnull({table.license}) or
{table.license} <> "Federal" then
0 else 1

Then go to report->selection formula->GROUP and enter:

sum({@hasst},{table.person} = 0 or
sum({@hasfed},{table.person} = 0

-LB
 
Thank you lbass. That worked perfectly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top