Choosing working days

G

Guest

Hello.
I have a table that stores information as follows:

Field1 Field2 Field3
a1 01/01/2005 3
a1 02/01/2005 8
.... ... ...
a1 07/01/2005 5
a2 03/02/2005 6
.... ... ...
What i need to do is to create another table with just one line for a1, a2,
etc, that stores the sum of field3 but only for working days starting from
the first date that appears for each record. For instance, for record a1 i
want the sum of field3 of 5 occurences but excluding Weekend days.

Is this possible?

Thanks
 
G

Guest

Thanks Alex, but now i have another question:
How can i make datepart function to return which week day Field2 represents?
 
A

Alex Dybenko

type DatePart("w",Field2) is a query, and it will return weekday of Field2.
 

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

Top