Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Back to Access Forum    Comments List
Upload Images | @Reply | Bookmark | Link | Email | Next Unseen |
query for access pls help
Samantha 

16 years ago
Hi
I have a table called keywords which has a field called competition. Competition can range from 0.01 - .99.
I would like to replace the text of an additional field called competitionexplanation, with the following:
if <= .3 text in competition explanation should state "low"
if >= .4 and <= .6, text in competition explanation should state "med"
if >.7 text in competition explanation should state "high"

I have tried different ways but am getting nowhere. If you could help it would really be appreciated,
best wishes
Sam
 


Answer from Richard Rost:

You could create a calculated query field to do this using an IIF function. It would be something like:

MyValue: IIF(X<=.3,"low",IIF(X<=.6,"med","high"))

Notice I've got TWO nested IIF functions in there. Here are two tutorials that will help you with these concepts. Watch them in order:

http://599cd.com/tips/access/calculated-query-fields?key=BlFAlEx

http://599cd.com/tips/access/iif-function?key=BlFAlEx

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
 
What's This?

 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 11/14/2026 4:31:56 AM. PLT: 0s