Roger's Access Library Homepage
Forum Home Forum Home > Roger's Access Library > Roger's Download Samples
  New Posts New Posts RSS Feed - Mode.mdb (intermediate)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Please consider donating $1 per sample downloaded, (find out why here)

Mode.mdb (intermediate)

 Post Reply Post Reply
Roger Carlson View Drop Down
Microsoft MVP
Microsoft MVP

Joined: 20 Feb 2008
Status: Offline
Points: 261
Post Options Post Options   Thanks (0) Thanks(0)   Quote Roger Carlson Quote  Post ReplyReply Direct Link To This Post Topic: Mode.mdb (intermediate)
    Posted: 01 Feb 2011 at 12:08pm
Please consider donating $1 per sample downloaded, find out why here.
Access has no Mode function, so you have to write one of your own.  This sample database shows how to do that. 

You use the  function  much like the built-in Domain functions (DLookUp, DMax, and so on).  That is, you must provide the 1) field name, 2) table name, and 3) a 'Where' Criteria.  When used in an aggregate query (see below) you MUST add each field 'grouped by' into the Where Criteria.  See Help for more on Domain Aggregate functions.

Access 2000-2010 (mdb) (58 KB):
Consider donating $1 per sample downloaded, find out why here.<
Back to Top
Sponsored Links

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.03
Copyright ©2001-2019 Web Wiz Ltd.