return first day of the week from weeknumber

B

Barb

Hi Everyone
How can I get FirstDayOfWeek (being Sunday) From a WeekNumber.
I'm calculating Hours worked per week and displaying it on a form.
It's a datasheet view that displays :Name, WeekNumber, PaidHours,
NonPaidHours.
Instead of WeekNumber ie. 15, 16, 19 I'd like to show "Week of " and a
Sunday of that week. or even better Start of the week date and End of the
week date. - so I could do "Dates between StartOfTheWeek and EndOfTheWeek"

Please help
thanks
Barb
 
K

KARL DEWEY

Use the field that used to derive the WeekNumber and bring it along with the
WeekNumber.
Then use the function -- [YourDateField]-Format([YourDateField],"w")+1

This determines the day of the week, substracts that from the date and adds
one.
 
B

Barb

Hi Karl
Thanks for the reply, but I can't do that.
Underlying query is grouping data based on a WeekNumber, so the dates
themself are no longer visible. All I get is a person name, weeknumber and
how many hours they worked or not.

Barb

KARL DEWEY said:
Use the field that used to derive the WeekNumber and bring it along with the
WeekNumber.
Then use the function -- [YourDateField]-Format([YourDateField],"w")+1

This determines the day of the week, substracts that from the date and adds
one.
--
KARL DEWEY
Build a little - Test a little


Barb said:
Hi Everyone
How can I get FirstDayOfWeek (being Sunday) From a WeekNumber.
I'm calculating Hours worked per week and displaying it on a form.
It's a datasheet view that displays :Name, WeekNumber, PaidHours,
NonPaidHours.
Instead of WeekNumber ie. 15, 16, 19 I'd like to show "Week of " and a
Sunday of that week. or even better Start of the week date and End of the
week date. - so I could do "Dates between StartOfTheWeek and EndOfTheWeek"

Please help
thanks
Barb
 
B

Barb

Hi Karl

Got it, got it, got it.
thank you,thank you,thank you,thank you,
You've made my day

Barb

KARL DEWEY said:
Use the field that used to derive the WeekNumber and bring it along with the
WeekNumber.
Then use the function -- [YourDateField]-Format([YourDateField],"w")+1

This determines the day of the week, substracts that from the date and adds
one.
--
KARL DEWEY
Build a little - Test a little


Barb said:
Hi Everyone
How can I get FirstDayOfWeek (being Sunday) From a WeekNumber.
I'm calculating Hours worked per week and displaying it on a form.
It's a datasheet view that displays :Name, WeekNumber, PaidHours,
NonPaidHours.
Instead of WeekNumber ie. 15, 16, 19 I'd like to show "Week of " and a
Sunday of that week. or even better Start of the week date and End of the
week date. - so I could do "Dates between StartOfTheWeek and EndOfTheWeek"

Please help
thanks
Barb
 

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