Access 2013 Query

Mac1206

Board Regular
Joined
Jun 3, 2016
Messages
184
How do I bring back all values for Fld_Demand in Table_A but if the value = "WR Other" bring that back As Misc.


[TABLE="width: 85"]
<colgroup><col></colgroup><tbody>[TR]
[TD]FLD_Demand[/TD]
[/TR]
[TR]
[TD]CHQ[/TD]
[/TR]
[TR]
[TD]HC[/TD]
[/TR]
[TR]
[TD]MC[/TD]
[/TR]
[TR]
[TD]WR Other[/TD]
[/TR]
[TR]
[TD]SubHC[/TD]
[/TR]
[TR]
[TD]Plate[/TD]
[/TR]
</tbody>[/TABLE]

[TABLE="width: 341"]
<tbody>[TR]
[TD="colspan: 5"][TABLE="width: 85"]
<colgroup><col></colgroup><tbody>[TR]
[TD][TABLE="width: 341"]
<tbody>[TR]
[TD="colspan: 5"][TABLE="width: 85"]
<colgroup><col></colgroup><tbody>[TR]
[TD]RESULT of Query [/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
Should Be:[/TD]
[/TR]
[TR]
[TD]FLD_Demand[/TD]
[/TR]
[TR]
[TD]CHQ[/TD]
[/TR]
[TR]
[TD]HC[/TD]
[/TR]
[TR]
[TD]MC[/TD]
[/TR]
[TR]
[TD]Misc[/TD]
[/TR]
[TR]
[TD]SubHC[/TD]
[/TR]
[TR]
[TD]Plate[/TD]
[/TR]
</tbody>[/TABLE]



[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Use a calculated field instead in your query to return this field instead, i.e.
Code:
New_FLD_Demand: IIF([FLD_Demand]="WR Other","Misc",[FLD_Demand])
 
Upvote 0

Forum statistics

Threads
1,225,613
Messages
6,186,005
Members
453,334
Latest member
Prakash Jha

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