Change number to extensive week day

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello!

I have a textbox were return us the number week day of the determined date.
Now, I would like to obtain that value for extensive (in another textbox the
corresponding word).

Something it type:
=IIf([Textbox1]=7;"SAT";Or[Textbox1]=1;"SUN";......)

Thanks in advance.
an
 
Assuming you mean you want to know the day in text, simply use the Format
function on the original date.

Format(MyDate, "ddd") will return Sun, Mon, Tue, ...
Format(MyDate, "dddd") will return Sunday, Monday, Tuesday, ...
 
Exactly, DS!

Many Thanks for your help.
an

Douglas J. Steele said:
Assuming you mean you want to know the day in text, simply use the Format
function on the original date.

Format(MyDate, "ddd") will return Sun, Mon, Tue, ...
Format(MyDate, "dddd") will return Sunday, Monday, Tuesday, ...

--
Doug Steele, Microsoft Access MVP

(no e-mails, please!)



an said:
Hello!

I have a textbox were return us the number week day of the determined
date.
Now, I would like to obtain that value for extensive (in another textbox
the
corresponding word).

Something it type:
=IIf([Textbox1]=7;"SAT";Or[Textbox1]=1;"SUN";......)

Thanks in advance.
an
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Week number 3
Weekly Hours 6
5 day week i/o 7 1
Probably a silly date question 1
Formula to tell day of week 2
week numbers 3
Calender work week 6
Main form- subform for -logging hours worked for day/week 2

Back
Top