Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old October 10th, 2006, 10:15 AM
stevenrec
Guest
 
Posts: n/a
Default Help formating a query field

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

  #2  
Old October 10th, 2006, 11:35 AM
Kc-Mass
Guest
 
Posts: n/a
Default Re: Help formating a query field

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" <steven.rector@stevenrec.comwrote in message
news:1160472450.606585.63350@h48g2000cwc.googlegro ups.com...
Quote:
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
>

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles