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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dates

Status
Not open for further replies.

RGeoffb

Programmer
Nov 25, 2003
1
US
Access seems to think the week begins on Sunday, wrong, I have a client whose week begins on Monday. How do I change Access's mind to my way of thinking as far as forms/reports are concerned?
 
Hi!

I think every time you use a function returning/using/involving weekdays, cause sunday is default.

For instance the weekday function:

[tt]=weekday(Date(),2)[/tt] - as control source
[tt]intDay=weekday(Date(),vbMonday)[/tt] - in VBA code

Last argument is "firstdayofweek" which then must be set each time you use it. The vbMonday constant might be used in code, 2 (same as vbMonday constant) might be used in control source.

You could also try using 0 (vbUseSystem) to make it use the regional settings, but that might still provide some anomalities.

HTH Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top