Hi,
I am trying to write an IIF statement in the criteria of my query. I want to do something like this but can't get the syntax right. Can anyone help?
IIf([Forms]![Main Menu]![cboCountySelecter]="All Wales","Anglesey" Or "Blaenau Gwent" Or "Cardiff" Or etc etc...,[Forms]![Main Menu]![cboCountySelecter])
So basically I'm saying If the combobox says All Wales then include all the county names else just use what's in the combobox.
It errors saying the expression is to complex when I try to use the Or operator in the TRUE portion of the IIF.
Anyone?
Thanks in advance,
Matt.
I am trying to write an IIF statement in the criteria of my query. I want to do something like this but can't get the syntax right. Can anyone help?
IIf([Forms]![Main Menu]![cboCountySelecter]="All Wales","Anglesey" Or "Blaenau Gwent" Or "Cardiff" Or etc etc...,[Forms]![Main Menu]![cboCountySelecter])
So basically I'm saying If the combobox says All Wales then include all the county names else just use what's in the combobox.
It errors saying the expression is to complex when I try to use the Or operator in the TRUE portion of the IIF.
Anyone?
Thanks in advance,
Matt.