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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query Expression Help

Status
Not open for further replies.

Kim296

MIS
Aug 24, 2012
98
0
0
US
I'm trying to create a formulated field that will display the record delivery status, so that I can filter the status for reporting. This formula appears to be working as I'm creating it in the expression builder; however, when I go to the datasheet view it shows "#error". Can anyone see what I am doing wrong? Any help is appreciated.


RStatus:
IIf([STATUS]="Approved" And (IsNull([PROVIDEDATE])),"Pending Delivery",
IIf([STATUS]="Denied","Denied",
IIf([PROVIDEDATE]>1,"Delivered","")))
 
I solved this. I figured out that my "Approve" and "Denied" were referencing the ID number, so I had to substitute 1 and 2.

RStatus: IIf([STATUS]=1 And (IsNull([PROVIDEDATE])),"Pending Delivery",IIf([STATUS]=2,"Denied",IIf([PROVIDEDATE]>1,"Delivered","")))

Thank you!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top