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

Weekday Function 1

Status
Not open for further replies.

tziviak

Technical User
Oct 10, 2002
128
US
I need a textBox to display the week day of the week-given a certain day in the form of Sun, Mon, Tue...
is there an easier way than an if statement?
if (weekday(DATE))=1,"Sun",IIF(weekday(DATE))=2,"Mon"....
Thank you

I'm putting this code in the control source of 15 textboxes-so is there a way for it not to be so redundant and repetitious?

Thank you
 
What about:
format(DATE,"ddd")

combo
 
I tried this and I got an error-what's wrong with my code?
=Weekday(Format([firstBilling],"ddd"))
 
thanks -I got it to work

=Format(Weekday([firstBilling]),"ddd")
 
You do not need to use Weekday function - Format and "ddd" will do the same with date.

combo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top