By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,327 Members | 1,791 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,327 IT Pros & Developers. It's quick & easy.

Help formating a query field

P: n/a
I'm back.
Do not use queries too often and have trouble formating a field:

misc: if(([data_order]![order_type])='2';"Normal)";
if(([data_order]![order_type])='8';"Extra")

Basically want it to check the number in the <order_typefield and if
it is 2, type Normal and if it is 8 type Extra.

Thought I could get it to work with IIF, but have not had any luck yet.
Is this even possible? I am sure I have done it before, but cannot find
where.

Please help.

Steven

Oct 10 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Fewer parenthesis, commas instead of semi-colons, IIF instead of IF.

If the order_type field is numeric, remove parenthesis from around the 2 and
8.

misc: iif([data_order]![order_type]="2","Normal",
iif([data_order]![order_type]="8","Extra", "Unknown?")

"stevenrec" <st***********@stevenrec.comwrote in message
news:11*********************@h48g2000cwc.googlegro ups.com...
I'm back.
Do not use queries too often and have trouble formating a field:

misc: if(([data_order]![order_type])='2';"Normal)";
if(([data_order]![order_type])='8';"Extra")

Basically want it to check the number in the <order_typefield and if
it is 2, type Normal and if it is 8 type Extra.

Thought I could get it to work with IIF, but have not had any luck yet.
Is this even possible? I am sure I have done it before, but cannot find
where.

Please help.

Steven

Oct 10 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.