Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Calculate Average of The Two Highest
Alan Hill 

16 years ago
Hi Richard me again

I have only worked on the highest score so far.
Topscore: IIf([F1]>[F2] And [F1]>[F3],[F1],IIf([F2]>[F1] And [F2]>[F3],[F2],IIf([F3]>[F1] And [F3]>[F1],[F3])))
I got the right answer (not tested properly)
I'll think about the next highest score tomorrow.
My 10 week old son just rolled over from his back to his tummy. Ain't life grand.
Best wishes Alan Hill


Reply from Richard Rost:

Life is grand. Ha ha.

OK, I owe everyone an apology... the code that I posted earlier was written in EXCEL format. That's what happens when you spend 4 months of your life writing an Excel book... you start to see everything as an Excel problem. The AND() function is something you use in Excel, not an Access query.

Alan, you were right. The correct syntax for determining the top score in an Access query is:

TopScore: IIf([F1]>[F2] And [F1]>[F3],[F1],IIf([F2]>[F1] And [F2]>[F3],[F2],[F3]))

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

Next Unseen

 
New Feature: Comment Live View
 
 

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: 6/9/2026 9:37:49 AM. PLT: 1s