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

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
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,214,522
Messages
6,120,022
Members
448,939
Latest member
Leon Leenders

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