How to convert week number and weekday to date

I have to fields, consisting of
* Week number
* Weekday

How can I find the date?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I did not understand quite well...

Do you mean you have for example:

Week Number = 12
Weekday = Monday

and you wanna get 3/20/2000 ?

Is that what you want ?
jarlebergeAuthor Commented:
Thats correct, but the weekday should be the weekday number.

Week Number = 12
Weekday number = 1

and I would have 3/20/2000
If Sunday = 7

SELECT DateAdd("ww",[Week],DateAdd("d",[WeekDay]-DatePart("w",#1/1/2000#,2),#1/1/2000#)) AS Expr
FROM Table1;

If Sunday = 0

SELECT DateAdd("ww",[Week],DateAdd("d",[WeekDay] + 1 - DatePart("w",#1/1/2000#,1),#1/1/2000#)) AS Expr
FROM Table1;

' hi jarleberge


in general: using values from a table or controls on a form:

theDate= DateAdd("w";[theWeekday];DateAdd("ww";[theWeek]-1;#01/01/2000#))

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Yes, I have been prooving hnasr´s solution, and I think it works properly, but you got to add 1 to the weekday if your weekday starts on 1 for Monday and ends on 7 for Sunday, as I show you.

theDate= DateAdd("w";[theWeekday]+1;DateAdd("ww";[theWeek]-1;#01/01/2000#))
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.