Iif statment problems

conk08

Board Regular
Joined
Jun 5, 2003
Messages
79
IIf([04-05]![CMG]=5001,[tblPayment]![Payment],[04-05]![Payment Rate])

This sorta works, but it just eliminates all the CMGs that equal 5001 instead of replacing it with [Payment] from [tblPayment]????
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Where are you using this?

Is it in an update query?
 
Upvote 0
I'm a bit lost here.

What are you actually trying to do?

Are you trying to update a field?

If you are then you can't use a select query.
 
Upvote 0
If one field has "5001" in it I would like it to pull a payment from a different field. So i have one field of payments [Field1], if Field2 has "5001" I would like [Field1] to be replace by [Field3].
 
Upvote 0

Forum statistics

Threads
1,215,261
Messages
6,123,930
Members
449,134
Latest member
NickWBA

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top