[mso] Re: Access

  • From: "Glenda Wells" <gwells@xxxxxxxxxxx>
  • To: <mso@xxxxxxxxxxxxx>
  • Date: Tue, 12 Jul 2005 11:03:08 -0400

If anyone's interested I found this great article on the SQL command
SELECT TOP=20

http://www.4guysfromrolla.com/ASPScripts/PrintPage.asp?REF=3D%2Fwebtech%2=
F
070605%2D1%2Eshtml


-----Original Message-----
From: Jim Pettit [mailto:jimpettit@xxxxxxxxx]=20
Sent: Monday, July 11, 2005 03:56 PM
To: mso@xxxxxxxxxxxxx
Subject: [mso] Re: Access

Glenda-

You state that you'd like to accomplish this without using a query...but
to list only a certain number of records, you'd have to use the SQL TOP
predicate, and that's available only in a query. Though, of course, the
query can just be in the report's Record Source (SELECT TOP 5
sActivities FROM tblActivities). To sort, you'd simply use the report's
Sorting And Grouping dialog box to force the report to sort using the
date as the field on which you sort, and 'Descending' as the sort order
(with no group headers or footers).

--Jim=20

-----Original Message-----
From: mso-bounce@xxxxxxxxxxxxx [mailto:mso-bounce@xxxxxxxxxxxxx] On
Behalf Of Glenda Wells
Sent: Monday, July 11, 2005 12:45 PM
To: mso@xxxxxxxxxxxxx
Subject: [mso] Access

Here's a good Access puzzle.

I have a table that lists many activities (could be a hundred or more) a
person could participate in.

I'd like, in a report, without using a query, a list of the five most
recent activities.

Basketball      01/02/2004
Baseball        03/07/2005
Soccer  03/10/2005
Tennis  07/07/2003
Swim            07/07/2004
Surf            08/12/2004
Horseback       07/10/2005

In this example, my result would be Horseback, Soccer, Baseball, Surf,
Swim

/glenda

*************************************************************
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
*************************************************************

*************************************************************
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
*************************************************************

*************************************************************
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: