A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

dates in queries



 
 
Thread Tools Display Modes
  #1  
Old July 8th, 2008, 08:10 PM posted to microsoft.public.access.queries
Debbie S.[_2_]
external usenet poster
 
Posts: 67
Default dates in queries

Hi,
I have a database with titles of articles and a log form. The titles and the
log form are in two different but related tables. The log form has four
fields: title, action, taken by, and date. The purpose of the log form is to
keep track of who is doing what to the article. I want to create a query that
will show the title of the article (this part is easy) along with the LAST
date in the log form for each individual article. The dates are irregular,
meaning actions are taken at all different times, so I can't put or or =
because there is no particular date to pinpoint. How do I tell access to pick
the latest date in the log form for each article title?
Thank you,
Debbie
  #2  
Old July 8th, 2008, 08:22 PM posted to microsoft.public.access.queries
Marshall Barton
external usenet poster
 
Posts: 5,361
Default dates in queries

Debbie S. wrote:
I have a database with titles of articles and a log form. The titles and the
log form are in two different but related tables. The log form has four
fields: title, action, taken by, and date. The purpose of the log form is to
keep track of who is doing what to the article. I want to create a query that
will show the title of the article (this part is easy) along with the LAST
date in the log form for each individual article. The dates are irregular,
meaning actions are taken at all different times, so I can't put or or =
because there is no particular date to pinpoint. How do I tell access to pick
the latest date in the log form for each article title?



Use a subquery. This article provides details.
http://allenbrowne.com/subquery-01.html#TopN

--
Marsh
MVP [MS Access]
  #3  
Old July 8th, 2008, 08:23 PM posted to microsoft.public.access.queries
bhicks11 via AccessMonster.com
external usenet poster
 
Posts: 529
Default dates in queries

Use the MAX function. Click the Sigma to make it a grouping query, set the
total row to MAX. You can make the other rows group by or expression if you
need.

Bonnie
http://www.dataplus-svc.com

Debbie S. wrote:
Hi,
I have a database with titles of articles and a log form. The titles and the
log form are in two different but related tables. The log form has four
fields: title, action, taken by, and date. The purpose of the log form is to
keep track of who is doing what to the article. I want to create a query that
will show the title of the article (this part is easy) along with the LAST
date in the log form for each individual article. The dates are irregular,
meaning actions are taken at all different times, so I can't put or or =
because there is no particular date to pinpoint. How do I tell access to pick
the latest date in the log form for each article title?
Thank you,
Debbie


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...eries/200807/1

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:14 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.