How to set week start number

  • Thread starter Thread starter holdings
  • Start date Start date
H

holdings

I'm trying to write a program for my wife for her to keep track
of some school stuff she does. What I'd like for it to do is
be able for her to select a date from the calendar function and
have that set the week start number as 1.

i.e Say she picks Sept.5 to have that start as week number 1. If she
picks Sept.12 have that start as week number 1 etc..

I'm limited in my know how with Access but can fumble thru if
anyone can help me??

Thank you.
 
VB datepart has week

In Almost all cases VB is going to have all the calendar functions you need. This will return a weak number you can define the start day of the weak. Also define the week of year. I would record the date in the database then display the week number. Microsoft doesn’t have a function to change the week into a date. Unfortunate the start of year is not a cant be just any date. I am not sure but you may have to write some custom code to convert the week number to the first school week, handling the cross over to the New Year as well.

DatePart("ww", date[,firstdayofweek[, firstweekofyear]])

I have had to deal with week number into dates when importing legacy data into my db. The rules about 52 vs. 53 weeks in a year can be a real hardship.

With SQL server you can define custom calendars for fiscal years and such. I don’t think you want to go that route.

I hope this is helpfull
 

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

Unsolicited Emails 12
Any link between malware and scam calls? 2
Get date for start of week 3
query 1
Nest vs Hive? 10
Week Number 2
We only want what is best for our kids, don't we? 1
Immersive VR set to raise £6m 3

Back
Top