Print Page | Close Window

Mode.mdb (intermediate)

Printed From: Roger's Access Library
Category: Roger's Access Library
Forum Name: Roger's Download Samples
Forum Description: A compendium of Microsoft Access 97 and 2000+ routines, each separated into its own sample database.
URL: www.rogersaccesslibrary.com/forum/forum_posts.asp?TID=557
Printed Date: 28 Mar 2024 at 5:22am
Software Version: Web Wiz Forums 12.03 - http://www.webwizforums.com


Topic: Mode.mdb (intermediate)
Posted By: Roger Carlson
Subject: Mode.mdb (intermediate)
Date Posted: 01 Feb 2011 at 12:08pm
Please consider donating $1 per sample downloaded, http://www.rogersaccesslibrary.com/whydonations.htm - find out why here .
 
Mode.mdb
 
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.

Download
Access 2000-2010 (mdb) (58 KB):
http://www.rogersaccesslibrary.com/forum/uploads/5/Mode2K.zip - Mode2K.zip

-------------
Consider donating $1 per sample downloaded, http://www.rogersaccesslibrary.com/whydonations.htm" rel="nofollow - find out why here .<



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.03 - http://www.webwizforums.com
Copyright ©2001-2019 Web Wiz Ltd. - https://www.webwiz.net