473,387 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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

Oct 10 '06 #1
1 1205
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: serge calderara | last post by:
Dear all, I have a CSV file which contains different type of data which are not classified at all. What I mean by classified is for instance that the second field might not always correspond to...
1
by: gevayl | last post by:
Hi, Is it possible to do memo text formating in ms access 2000? I mean like underlining a portion of text in a memo field or a text field? Thank you.
3
by: Tom | last post by:
Is there any way to use conditional formating to change a control for a field in a continuous form to a textbox, option group or combobox depending on the value of another field on the form? On a...
2
by: John Bailey | last post by:
Okay, I am using a detail view to display some data. Two of the fields are date fields. I can't seem to get them to display properly. I have tried a variety of options in the DataFormatString...
1
by: chengsi | last post by:
Hi all, I have used a cross-tab query combining some text and number fields to generate a report. Unfortunately, the cross-tab query results in all fields being classified as TEXT fields and I...
47
by: Jo | last post by:
Hi there, I'm Jo and it's the first time I've posted here. I'm in process of creating a database at work and have come a little unstuck.....I'm a bit of a novice and wondered if anyone could...
3
uranuskid
by: uranuskid | last post by:
Hey folks, I have aliile issue with my Date. I query the data base with a comperative query (see below) and want to get the date in a different format. At first the query: $query =...
2
by: KTB | last post by:
I have created a P & L Statement which I'm very pleased with after downloading historical data from excel spreadsheets. I've created a successful DLookup function called LYMTD in a select query to...
1
by: Shawn Northrop | last post by:
I just read an article on kirupa.com about incorporating mySQL and PHP with flash. I am dynamically loading conent into a flash movie and am not sure how to format. In my php code i have: $y = "";...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.