Hi,
I have a column field DateTime in (dd/mm/yy hh:mm) format
I trying to figure out how to extract out the rows based on current week.
Now()
WeekdayName()
.... ?
How to link them together to get you current week ?!?!?
Thanks
This maybe will give you TRUE/FALSE
=WEEKDAY(A2)=WEEKDAY(NOW())
"Relax. What is mind? No matter. What is matter? Never mind!"
MOTD: Until I taste a lion pig is a King of animals to me.
SELECT Table1.DateTime, Weekday([DateTime])=Weekday(Now()) AS Expr1
FROM Table1;
Result:
DateTime Expr1
18/1/2011 0
19/1/2011 0
18/2/2011 -1
19/2/2011 0
20/2/2011 0
21/2/2011 0
current week is 8 = 13/02/2011 to 19/02/2011
but 19/02/2011 i got 0 ?
Try this
SELECT datetime.Date, Weekday([date]) AS Expr1 FROM [datetime] WHERE (((Weekday([date]))=Weekday(Now())));
cross post to
http://forums.aspfree.com/microsoft-...on-416978.html
Alan
Click the * below to say thanks.
Database Principles
Pivot Table Tips
Good Excel Video Tutorials
Sumifs or SumProduct
DataPig Access Tutorials
MS Query Tutorial
Worst Pie Chart Ever?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks