A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

#error in access query



 
 
Thread Tools Display Modes
  #1  
Old January 24th, 2007, 07:57 PM posted to microsoft.public.access.queries
PatT123
external usenet poster
 
Posts: 6
Default #error in access query

I have a join that leaves null values, and is supposed to in a query result.
Only supervisors have a supervisor code. Employees do not. I am trying to
evaluate that code to give the manager level.

Manager, Supervisor, Employee. Employee will be null. Managers are less
than 60000 and Supervisors are greater than 60000. I continue to get #error
in my result. I have tried both NZ and several other error functions, with
and without a direct evaluation to 0.

Any suggestions?

MgrLvl: IIf(Right(NZ([OrgSupeIndexCCode]![LinkSupe]),5) Between 1 And 60000,
"M",IIf(Right(NZ([OrgSupeIndexCCode]![LinkSupe]),5)60000,"S","E"))

MgrLvl: IIf(Right(NZ([OrgSupeIndexCCode]![LinkSupe],0),5) Between 1 And 60000,
"M",IIf(Right(NZ([OrgSupeIndexCCode]![LinkSupe],0),5)60000,"S","E"))


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:43 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.