473,413 Members | 1,807 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,413 software developers and data experts.

Calculating a median in a query

Hello,

I am completely new to Access. I am running a query but need to take the median value of observations in one of my tables. I've tried creating an expression but it is not working. I've also done some internet searching for a step by step guide on how to do this, but it's all jibberish to me! Could someone who has a few minutes to spare please post some sort of quick step by step guide on how to get median values in language that a novice like me can understand? Thank you so much!!!
May 2 '07 #1
3 12886
I found the Microsoft site has exactly what you need.
The location is http://support.microsoft.com/kb/210581
May 2 '07 #2
Hello,

I am completely new to Access. I am running a query but need to take the median value of observations in one of my tables. I've tried creating an expression but it is not working. I've also done some internet searching for a step by step guide on how to do this, but it's all jibberish to me! Could someone who has a few minutes to spare please post some sort of quick step by step guide on how to get median values in language that a novice like me can understand? Thank you so much!!!
I found the Microsoft site has exactly what you need. You don't really need to be intimidated - just read the Summary to make sure you are getting the right definition of median. Then go to the modules section and click "New". Then click "Tools" in the window you just opened and select references (as it says to in the "More information" section.) You do this by scrolling down the references list until you find the Microsoft DAO 3.6 Object Library. Put a check in the box to the left by clicking on it. Then you can cut the "Function Median ..." code right from the Microsoft window and paste it into the open module window (as it says in step 2 of the MS website). Close your module. I found its best to close right out of access at this point in order to ensure that the module is saved and appears in the modules window. You can save the module as "Module 1" or "Median" if you like. When you reopen Access you should open the module again and see that the code you put in is still there. While it is open check your references again to see that the Microsoft DAO 3.6 Object Library check box is selected (check mark). At this point, you can read the section "How to Use the Median() Function" on the MS site.

The Microsoft location is MS Median info at:

Hope this helps.
May 2 '07 #3
MMcCarthy
14,534 Expert Mod 8TB
Here is another question on this issue which may help.

http://www.thescripts.com/forum/thread608740.html
May 4 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Ross Contino | last post by:
Hello to all: I have been searching the web for examples on how to determine a median value in a mySQL table. I have reviewed the article at...
2
by: Hugo L. | last post by:
I really don't know how to calculate the median. Can anybody help me?
8
by: nick.vitone | last post by:
Hi, I'm somewhat of a novice at Access, and I have no experience programming whatsoever. I'm attempting to calculate the statistical median in a query. I need to "Group by" one column and find...
4
by: uspensky | last post by:
I have a table (cars) with 3 fields: VIN, Class, sell_price 101, sports, 10000 102, sports, 11000 103, luxury, 9000 104, sports, 11000 105, sports, 11000 106, luxury, 5000 107, sports, 11000
5
by: jonm4102 | last post by:
I'm trying to calculate the median of some numerical data. The data can only be found in a query (henceforth query 1) field I previously made, and I would prefer to calculate the median in a new...
1
by: Jaime Leivers | last post by:
Here's a median function in access that you can call in any query. You could change this to any excel function you wanted. Most people can find the windows help file that says how to call an excel...
3
by: Scott | last post by:
I need to take the median from a field of records in a report. Can someone shed the light how to do it. Thanks, Scott
10
by: Massimo30 | last post by:
Looking for answers and have done a search in books and websites and still can't find the answer: I am setting up a Market Trend DB on housing figures. I have the following fields in my table: My...
1
by: cmb3587 | last post by:
My code runs fine for the most part...the only time it fails is when I type in a negative to end the array. I don't want the negative number to be included in the array and I thought that is what...
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?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.