#Error due to empty query (1 Viewer)

teknogeek9

Registered User.
Local time
Today, 01:07
Joined
Jan 4, 2001
Messages
15
I have a report which combines the results of a query with "test". For example,
=RTrim([CS or Inst]) & " Employment/Affirmative Action Personnel Changes"

There are times when the query does not return any records and because of such, #Error will display.

How can I prevent #Error and instead, print just Employment/Affirmative Action Personnel Changes.

Thanks!
 
R

Richie

Guest
Iif (IsNull([CS or Inst], " Employment/Affirmative Action Personnel Changes",RTrim([CS or Inst]) & " Employment/Affirmative Action Personnel Changes"))
 

teknogeek9

Registered User.
Local time
Today, 01:07
Joined
Jan 4, 2001
Messages
15
Thanks Rich!
 

Users who are viewing this thread

Top Bottom