Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Format date problem 1

Status
Not open for further replies.

JAES

Technical User
Jul 25, 2004
100
GB
=Format([inDate],"ww")

I'm using this formula to find the week number of a date but I cannot figure out how to change the start day from Sunday to Monday.

I found this syntax for the Format function but can not seem to make it work.

Format ( expression, [ format, [ firstdayofweek, [firstweekofyear] ] ] )

Any help is appreciated.


 
I've tried that. When I enter the vbmonday it automatically changes it to [vbmonday] and the associated subform is blank.

I'm using the expression in an unbound text box and calling a subform from its value. I also use INSERT INTO to put it into a table and I get the error, "There is an invalid use of the .(dot) or ! operator or invalid parentheses." when that is run.


 
And this ?
Format([inDate],"ww",2)

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Thanks PHV (again). That got it. I tried that at one time but I think the "old" information was still coming up and throwing me off.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top