Link to home
Start Free TrialLog in
Avatar of marku24
marku24Flag for United States of America

asked on

Formatting da6e as week # in access query

I would like to format a week in an access query to show the week #.  Does anyone know the proper format?
Avatar of Jim Horn
Jim Horn
Flag of United States of America image

?Format(now(), "ww")
33

As apparently we're in the 33rd week of the year.

BUT ... this is calendar week, so if you have a different definition of week number, you'll need to spell that out.
Avatar of marku24

ASKER

I got that to work in the query but it is formatting as a date:  

33/_/_    How do i get it to format as a number.  the column format option has nothing in there so i can't select "number".
ASKER CERTIFIED SOLUTION
Avatar of Jim Horn
Jim Horn
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If you're trying to convert the 33 week...

CInt(anything) converts to a small integer, which is +/- 32,000-ish.
CByte(anything) converts to a byte, which is 0 to 255.
Thanks for the greade.  Good luck with your project.  -Jim