Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Modules / DAO / VBA / January 2006

Tip: Looking for answers? Try searching our database.

SQL query to display only most recent date?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Neil @ Delfin English School - 12 Jan 2006 16:05 GMT
I have a simple programming question.  

I work in a school and we have constant changes of students each week who
are paying weekly .  I have to set up a query using SQL to search for

1) The date of only the most recent payment made.  
2) If I want to display the students for a particular class for the coming
week how do I program that in?
TomHinkle - 12 Jan 2006 19:18 GMT
1.
SELECT TOP 1 CurrentDate FROM SomeTable Order by CurrentDate;
(May have to order by date DESC)

2. not enough info on # 2.. would need to know how you're tables are set up..

> I have a simple programming question.  
>
[quoted text clipped - 4 lines]
> 2) If I want to display the students for a particular class for the coming
> week how do I program that in?
RD - 17 Jan 2006 22:02 GMT
1. See this: http://www.mvps.org/access/queries/qry0020.htm
You should be able to alter it to show the records you want.

2. What would tell you that the student is in a particular class?

>I have a simple programming question.  
>
[quoted text clipped - 4 lines]
>2) If I want to display the students for a particular class for the coming
>week how do I program that in?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.