[mso] Re: Access Query

  • From: "Green" <1z@xxxxxxxxxxxxxx>
  • To: <mso@xxxxxxxxxxxxx>
  • Date: Mon, 10 Jan 2005 16:52:13 +0100

Doesn't acces support a clause like... "select top 1 ..."?

Lisa
 
> Glenda--
> 
> That's because you're querying against a text field (as 
> evidenced by the
> leading "0" digit). You can change the field property -- 
> probably not a good
> option -- or you can use the VAL function: 
> Max(Val([SubjID])). The Val
> function strips out all non-numeric characters from a 
> strung and returns
> just the numbers.
> 
> --Jim 

> Hi All. 
> I would like to create an Access query where I get the 
> Maximum value of
> something that could have more than one value. 
> 
> example table: 
> Name            UID             Subj            SubjID 
> John Smith      abc123          US history      01 
> John Smith      abc123          Roman history   02 
> 
> My desired result is: 
> John Smith      abc123          Roman history   02 
> 
> The problem is when I put MAX on the SubjID field my query still
> displays both values instead of just the one. 


*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or 
MicrosoftOffice@xxxxxxxxxxxxxxxx

To send mail to the group, simply address it to mso@xxxxxxxxxxxxx

To Unsubscribe from this group, send an email to 
mso-request@xxxxxxxxxxxxx with the word "unsubscribe" (without the quotes) in 
the subject line.

Or, visit the group's homepage and use the dropdown menu.  This will also allow 
you to change your email settings to digest or vacation (no mail).
//www.freelists.org/webpage/mso

To be able to use the files section for sharing files with the group, send a 
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with 
instructions.  Once you are a member of the files group, you can go here to 
upload/download files:
http://www.smartgroups.com/vault/msofiles
*************************************************************

Other related posts: