Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / New Users / May 2005

Tip: Looking for answers? Try searching our database.

return the day

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
esparzaone - 10 May 2005 16:42 GMT
How do I type in the date i.e. 5/10/2005 in one field and in the other field
have it autofill the day Tuesday.  I looked at other post and found this
Format (date(),"dddd")
I tried entering this in the format section of the second box and it didn't
work.  1 more questions it suggested to go to online help under format
function - where is this?

Thanks in advanced!
Zenis
Rick B - 10 May 2005 16:53 GMT
In a new UNBOUND TEXT field, enter...

=Format ([?????],"dddd")

Replace ????? with the prompt or field name that represents your entered
date.

In your original post, your formula (if entered in the right spot) would
have simply returned the day for the CURRENT date, not the entered date.

Note that this is put in an UNBOUND field because you would not store this
in your table.  That would be redundant since you are already storing the
DATE and can pull out the day in your queries, forms, or reports using an
unbound field as demonstrated in the first paragraph above.

Signature

Rick B

> How do I type in the date i.e. 5/10/2005 in one field and in the other field
> have it autofill the day Tuesday.  I looked at other post and found this
[quoted text clipped - 5 lines]
> Thanks in advanced!
> Zenis
Alex White MCDBA MCSE - 10 May 2005 16:57 GMT
use the on change event of the box you are typing into to set the day of
week

e.g.

within the event

me.txtDayOfWeek.value = format(now(),"dddd")

Signature

Regards

Alex White MCDBA MCSE
http://www.intralan.co.uk

> How do I type in the date i.e. 5/10/2005 in one field and in the other
> field
[quoted text clipped - 7 lines]
> Thanks in advanced!
> Zenis
BruceM - 10 May 2005 17:08 GMT
The problem may be that there is nothing to format.  The format function can
format a value, but it can't create one.  If the first text box is txtDate1
and the second txtDayOfWeek, you could put this into the After Update event
of txtDate1:
Me.txtDayOfWeek = Format(Me.txtDate1,"dddd")
You could put the code in any number of other places, so explain the
specific circumstances if you need another approach.
Remember that txtDayOfWeek is unbound.

> How do I type in the date i.e. 5/10/2005 in one field and in the other field
> have it autofill the day Tuesday.  I looked at other post and found this
[quoted text clipped - 5 lines]
> Thanks in advanced!
> Zenis
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.