In a table I have to fill in a date.
In another field called day I want the name of the day that belongs to the date entered in the other field.
How do I do this?
TIA
George
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
name of day (2000)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » name of day (2000)
- This topic has 6 replies, 4 voices, and was last updated 22 years, 7 months ago.
AuthorTopicSjors van der Horst
AskWoody PlusOctober 10, 2002 at 7:04 pm #377821Viewing 1 reply threadAuthorReplies-
WSpatt
AskWoody LoungerOctober 10, 2002 at 8:19 pm #623294 -
WSGARYPSWANSON
AskWoody LoungerOctober 10, 2002 at 8:20 pm #623296Create an update query against the table you want to insert the day of the week as follows:
Assume the Table with the Date field in it is called Table 1.
1. Insert another field in table 1 called DayOfWeek
2. Create a New Query and show table Table 1 (or your table with the Date field in it)
3. Select the query type as an Update Query
4. In the Field of the query input DayOfWeek (The field to be updated)
5. Table is the Table being updated (Table 1 for this example)
6. In the Update To field, insert Format([DATE],’dddd’)
Run the query.The weekday will be inserted in the DayOfWeek field
HTH
-
Sjors van der Horst
AskWoody Plus -
WSHansV
AskWoody LoungerOctober 11, 2002 at 2:58 pm #623513I guess there is some confusion here about “field”.
By a field, we usually mean a column in a table (or query). On a form, we use a text box to fill in a field.In your case, you don’t need a field in the table to hold the name of the day. You can create a new text box on the form bound to the date field; the easiest way is to drag the field from the Field List window to the form (in design view). Alternatively, create a text box using the Toolbox, and set its Control Source property to the name of the date field. Set the Format property of the text box to dddd, and set the Locked property of this text box to True.
If you enter a date in the other text box and tab out of it, the new text box will display the name of the day. -
WSGARYPSWANSON
AskWoody LoungerOctober 11, 2002 at 3:19 pm #623520I have to agee with Hans here. I assumed you were trying to fill in a field in a table. However, if the table contains the date, then why use up unnecessary space in the table.
If in a Form, you can do as Hans said with the textbox.
However, If you really want to launch the query…
You could use the on change event of the field where you fill in the date to launch the query using the following code:
docmd.SetWarnings WarningsOff ‘Turn off System Warnings
DoCmd.OpenQuery “QueryName” ‘Run Update Query
Refresh ‘Refresh Screen to see the new data
docmd.SetWarnings WariningsOn ‘Turn System Warnings OnThis will run the update query each time the data in the date field is changed assuming you are entering the date data.
HTH
-
Sjors van der Horst
AskWoody Plus
-
-
-
Viewing 1 reply thread -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Proton to drop prices after ruling against “Apple tax”
by
Cybertooth
6 hours, 12 minutes ago -
24H2 Installer – don’t see Option for non destructive install
by
JP
6 hours, 38 minutes ago -
Asking Again here (New User and Fast change only backups)
by
thymej
17 hours, 33 minutes ago -
How much I spent on the Mac mini
by
Will Fastie
7 hours ago -
How to get rid of Copilot in Microsoft 365
by
Lance Whitney
1 minute ago -
Spring cleanup — 2025
by
Deanna McElveen
23 hours, 25 minutes ago -
Setting up Windows 11
by
Susan Bradley
1 hour, 48 minutes ago -
VLC Introduces Cutting-Edge AI Subtitling and Translation Capabilities
by
Alex5723
18 hours, 53 minutes ago -
Powershell version?
by
CWBillow
19 hours, 46 minutes ago -
SendTom Toys
by
CWBillow
4 hours, 2 minutes ago -
Add shortcut to taskbar?
by
CWBillow
23 hours, 41 minutes ago -
Sycophancy in GPT-4o: What happened
by
Alex5723
1 day, 16 hours ago -
How can I install Skype on Windows 7?
by
Help
1 day, 14 hours ago -
Logitech MK850 Keyboard issues
by
Rush2112
21 hours, 41 minutes ago -
We live in a simulation
by
Alex5723
2 days, 6 hours ago -
Netplwiz not working
by
RetiredGeek
1 day, 16 hours ago -
Windows 11 24H2 is broadly available
by
Alex5723
2 days, 18 hours ago -
Microsoft is killing Authenticator
by
Alex5723
1 day, 6 hours ago -
Downloads folder location
by
CWBillow
3 days, 1 hour ago -
Remove a User from Login screen
by
CWBillow
1 day, 20 hours ago -
TikTok fined €530 million for sending European user data to China
by
Nibbled To Death By Ducks
2 days, 16 hours ago -
Microsoft Speech Recognition Service Error Code 1002
by
stanhutchings
2 days, 16 hours ago -
Is it a bug or is it expected?
by
Susan Bradley
18 hours, 20 minutes ago -
Image for Windows TBwinRE image not enough space on target location
by
bobolink
2 days, 15 hours ago -
Start menu jump lists for some apps might not work as expected on Windows 10
by
Susan Bradley
1 day, 14 hours ago -
Malicious Go Modules disk-wiping malware
by
Alex5723
3 days, 5 hours ago -
Multiple Partitions?
by
CWBillow
3 days, 5 hours ago -
World Passkey Day 2025
by
Alex5723
2 hours, 38 minutes ago -
Add serial device in Windows 11
by
Theodore Dawson
4 days, 14 hours ago -
Windows 11 users reportedly losing data due forced BitLocker encryption
by
Alex5723
2 days, 15 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.