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

'Select Case' in MS Access queries? 1

Status
Not open for further replies.

Katya85S

Programmer
Jul 19, 2004
190
In a Query, field CustName, i need to substitude one value with another, but only if teh value="bla-bla-bla", otherwise teh query should show the real value of field CustName.
How can i do that?
Does MS Access Queries support something like SQL Server's
Select CustName =
case when CustName ='bla-bla-bla' then ''
else CustName
end

Thank you all in advance.
 
Similar, but different. You'll want to use Imediate if IIF, like this...

Code:
Select CustName = IIF(CustName ='bla-bla-bla', '', CustName)

-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
Many-many thanks, George! That's what i was looking for :)
Thank you !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top