W
warnett
hey there all.
Been using access for my project at school and I need the system to work out
the day of the week for me, given a date stored in a variable. Found
something with access though:
WeekDay("07/11/2005",2) returns 1 (monday which is correct)
but using a variable of either data type date or string with this value
stored returns an incorrect value. calling this variable datedate just for
this purpose
WeekDay(datedate,2) returns 6 (saturday which is wrong).
I have tried both a string and a date for the data type of the variable but
it still wishes to produce the wrong answer. I believe it is to do with
quotation marks around the date. Any ideas.
Thanks Jason
Been using access for my project at school and I need the system to work out
the day of the week for me, given a date stored in a variable. Found
something with access though:
WeekDay("07/11/2005",2) returns 1 (monday which is correct)
but using a variable of either data type date or string with this value
stored returns an incorrect value. calling this variable datedate just for
this purpose
WeekDay(datedate,2) returns 6 (saturday which is wrong).
I have tried both a string and a date for the data type of the variable but
it still wishes to produce the wrong answer. I believe it is to do with
quotation marks around the date. Any ideas.
Thanks Jason