Microsoft Access Help

Associate
Joined
29 Jul 2005
Posts
445
Location
Matlock
Hi there,

I am trying to write an IIF expression in a query in access so far i have got:
Code:
Expr1: IIf([Marc],"Marc",IIf([Andy],"Andy",IIf([Marc] & [Andy],"Both","")))
I know this is not correct as this never shows the word "Both". The Fields [Marc] and [Andy] are both yes/no feild. I'm guessing i've messed up here:
Code:
IIf([Marc] & [Andy],
Would be grateful if someone could point me in the right direction

thanks in advance

Marc
 
Thanks for your reply but if i type in that code it says:

The expression you enetered contains invalid syntax.

You may have entered a comma without a preceding value or identifier

I'm not too sure what this is saying, any more help would be very appreciative

thanks again

Marc
 
Back
Top Bottom