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 / General 2 / July 2007

Tip: Looking for answers? Try searching our database.

Simple Query Question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JIT - 27 Jul 2007 18:32 GMT
I have a query that runs a calculation in steps in different fields.  They
are as follows.

CompWkDay: Weekday([Completion Date])

DayAdd: 6-[CompWkDay]

CompWkFriDate: DateAdd("d",[DayAdd],[Completion Date])

Step CompMonth: Month([CompWkFriDate])

The ultimate goal is to get the number provided in "Step CompMonth."  
However, I now need to do all of these calculations in one field so that I
can simply update a field in a table.  Can anyone tell me how to join these
calculations together?
Douglas J. Steele - 27 Jul 2007 18:55 GMT
CompMonth: Month(DateAdd("d",6 - Weekday([Completion Date]),[Completion
Date]))

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

>I have a query that runs a calculation in steps in different fields.  They
> are as follows.
[quoted text clipped - 12 lines]
> these
> calculations together?
 
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



©2009 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.