Get WEEK of date in VBA

R

Ragnar78

Hy

Is their a way of retreiving the WEEK from date Field through VBA?
Just like the Year() function...

Thanks Agai
 
D

Douglas J. Steele

Just to tag along on Steve's reply, note that there are a couple of optional
parameters you can provide to DatePart to control how it calculates what
week 1 is.

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)


Steve Schapel said:
Ragnar,

Try this one...
DatePart("ww",[YourDateField])

--
Steve Schapel, Microsoft Access MVP

Hy

Is their a way of retreiving the WEEK from date Field through VBA?
Just like the Year() function...

Thanks Again
 

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