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 / Queries / September 2006

Tip: Looking for answers? Try searching our database.

30 daily dates then weekly dates afterwards

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dodat - 21 Sep 2006 22:57 GMT
Hi,

I'm trying to choose the first 30 days when a new entry comes into the table
by using this formula:

>=[date]+30

and with in the same query, i want to choose weekly dates after i have 30
daily dates.

is there a way for me to add:  

weekday([date],2)

to this field or is it a completely different process?

Thanks,
John Vinson - 22 Sep 2006 00:38 GMT
>is there a way for me to add:  
>
>weekday([date],2)

Try DateAdd("ww", [date], <number>)

                 John W. Vinson[MVP]
Dale Fye - 22 Sep 2006 03:15 GMT
If you are using "Date" as a field name, you need to change it to something
more meaningful.  Date is an access reserved word, and using it as a field
name may eventually lead to JET having difficulty intrepreting your queries.
I usually try to put something descriptive as a prefix or suffix on my date
columns (Sales_Date, Start_Date, End_Date, ....)

HTH
Dale

> Hi,
>
[quoted text clipped - 14 lines]
>
> Thanks,
 
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.