Simple Query Question

G

Guest

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?
 
D

Douglas J. Steele

CompMonth: Month(DateAdd("d",6 - Weekday([Completion Date]),[Completion
Date]))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Query to summarize/Count by month 3
Value in a Form Question 1
Updating the table with query 1
Date formatting and calculation 2
Query 1
Query 2
Query to Complex with Criteria 1
DateDiff 1

Top