Question : Multiple Condition iif in Query

I have an iif statement in one of my queries where if a combo box has a particular value I want to have it look for 2 specific values otherwise I want it to look only at the combobox

IIf([Forms]![swfrmMonthlyFinancialQueries]![cboProgram]='WX DOA','WX DOA' Or 'WX Rework',[Forms]![swfrmMonthlyFinancialQueries]![cboProgram])

So if the combobox is WX DOA I want to have WX Rework And WX DOA programs included otherwise I want whatever is in the combobox.

Hope this makes sense,
JOe K.

Answer : Multiple Condition iif in Query

From wikipedia, the definition of computer programming is as follows:
"Computer programming (often shortened to programming or coding) is the process of designing, writing, testing, debugging  / troubleshooting, and maintaining the source code of computer programs"

As you are not creating source code of a computer program, instead you are just retrieving or inputting data into a database, you are not programming when writing SQL.

Programming processes include input>functions>output to get something new from the data which you put into the program in the first place. If you are just sending and retreiving the same data in different forms or places, SQL is not technically programming, just as HTML is coding not programming also. Hope this helps.
Random Solutions  
 
programming4us programming4us