Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Other Forums
 MS Access
 Query based on current working week transactions

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2002-01-30 : 08:41:31
Steve writes "Hi I have an access 2000 db with a table called timetrack. I have two fields timetrack.jobnumber and timetrack.trackdate that store jobnumbers and dates.

Can anyone tell me what the SQL code is to extract a recordset that pulls all of the jobnumbers for the current week.

Thanks

Steve"

robvolk-

Moved this to MS Access Forum

Edited by - robvolk on 01/30/2002 08:46:28

Nazim
A custom title

1408 Posts

Posted - 2002-01-30 : 10:11:25
SELECT jobnumber,trackdate
FROM timetrack
WHERE format(trackdate,"w")= Format(date(),"w") and format(trackdate,"M")= Format(date(),"M")
and format(trackdate,"YYYY")= Format(date(),"YYYY")

HTH

--------------------------------------------------------------
Dont Tell God how big your Problem is , Tell the Problem how Big your God is
Go to Top of Page
   

- Advertisement -