houseofturner
Registered User.
- Local time
- Today, 18:33
- Joined
- Dec 10, 2009
- Messages
- 37
If I put an Iff statement into a Query such as:
IIf([Table A]![FieldName] Like "A" Or [Table A]![FieldName] Like "B","Answer A", "Answer B")
It works ok but as the table name is the same why do I have to repeat it. If I try:
IIf([Table A]![FieldName] Like "A" Or Like "B","Answer A", "Answer B")
It does not seem to evaluate correctly.
This means that multiple "Or" criteria referencing the same field results in very long queries. I know you dont need to in VBA but I am doing this in a query grid.
IIf([Table A]![FieldName] Like "A" Or [Table A]![FieldName] Like "B","Answer A", "Answer B")
It works ok but as the table name is the same why do I have to repeat it. If I try:
IIf([Table A]![FieldName] Like "A" Or Like "B","Answer A", "Answer B")
It does not seem to evaluate correctly.
This means that multiple "Or" criteria referencing the same field results in very long queries. I know you dont need to in VBA but I am doing this in a query grid.