473,406 Members | 2,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Day of Week Entered Automatically

Reading Google archives, I found a quick and simple solution from Allen
Browne of having a "Day of Week" textbox automatically filled from a
separate date field textbox. I put the function { =Format([fldNCDATE],
"dddd") } into the Control Source of the Day of the Week textbox, removing
the previous 'lookup values' (Sunday - Saturday) that I had in the Control
Source. When I tried it, 'Nothing' happened. When I entered a date into
[fldNCDATE] textbox and moved off of that control, the [txtDayofWeek]
remained blank.
I then removed the previous Row Source and Source Type data as it pertained
to the 'lookup values' I had use before with the previous (no longer
pertinent) properties of the [txtDayofWeek] textbox and still, 'Nothing'.
Previously, I at least had a lookup with all seven (7) days of the week
listed, but because I removed the former properties, those 'days of the
week' were no longer available and neither was the expected result of the
inserted function.

What did I do to screw up this simple function?

Getting me on track is gratefully accepted...
Earl Anderson
Nov 12 '05 #1
2 6548
If you have a field or control named, "fldNCDATE", all you need is another
*text box* with these proeprties:
Control Source =[fldNCDate]
Format dddd

Not sure what you actually have, as a text box would not have Row Source or
Source Type properties.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Earl Anderson" <is*****@rcn.com> wrote in message
news:bp**********@bob.news.rcn.net...
Reading Google archives, I found a quick and simple solution from Allen
Browne of having a "Day of Week" textbox automatically filled from a
separate date field textbox. I put the function { =Format([fldNCDATE],
"dddd") } into the Control Source of the Day of the Week textbox, removing
the previous 'lookup values' (Sunday - Saturday) that I had in the Control
Source. When I tried it, 'Nothing' happened. When I entered a date into
[fldNCDATE] textbox and moved off of that control, the [txtDayofWeek]
remained blank.
I then removed the previous Row Source and Source Type data as it pertained to the 'lookup values' I had use before with the previous (no longer
pertinent) properties of the [txtDayofWeek] textbox and still, 'Nothing'.
Previously, I at least had a lookup with all seven (7) days of the week
listed, but because I removed the former properties, those 'days of the
week' were no longer available and neither was the expected result of the
inserted function.

What did I do to screw up this simple function?

Getting me on track is gratefully accepted...
Earl Anderson

Nov 12 '05 #2
Thanks Allen.
It worked perfectly after you pointed out that I had a combo box (Row Source
and Row Source Type) as my Day of the Week control and not a textbox.
Earl

"Allen Browne" <Al*********@SeeSig.Invalid> wrote in message
news:3f**********************@freenews.iinet.net.a u...
If you have a field or control named, "fldNCDATE", all you need is another
*text box* with these proeprties:
Control Source =[fldNCDate]
Format dddd

Not sure what you actually have, as a text box would not have Row Source or Source Type properties.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Earl Anderson" <is*****@rcn.com> wrote in message
news:bp**********@bob.news.rcn.net...
Reading Google archives, I found a quick and simple solution from Allen
Browne of having a "Day of Week" textbox automatically filled from a
separate date field textbox. I put the function { =Format([fldNCDATE],
"dddd") } into the Control Source of the Day of the Week textbox, removing the previous 'lookup values' (Sunday - Saturday) that I had in the Control Source. When I tried it, 'Nothing' happened. When I entered a date into
[fldNCDATE] textbox and moved off of that control, the [txtDayofWeek]
remained blank.
I then removed the previous Row Source and Source Type data as it

pertained
to the 'lookup values' I had use before with the previous (no longer
pertinent) properties of the [txtDayofWeek] textbox and still, 'Nothing'. Previously, I at least had a lookup with all seven (7) days of the week
listed, but because I removed the former properties, those 'days of the
week' were no longer available and neither was the expected result of the inserted function.

What did I do to screw up this simple function?

Getting me on track is gratefully accepted...
Earl Anderson


Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: netsurfer | last post by:
Hi: Have a question on making the date automatically filled in by what the user enters in by the date at the top. The date entered at the top would most likely be on a Wednesday then I need...
2
by: David Olsen | last post by:
Would any of you kind souls now how to put into an unbound text box the week commencing date for the current week which you are in, so that the report heading would say something like for example,...
9
by: Ray | last post by:
I need to convert the normal calendar to show the week no., the period no. and the financial year. The financial year format is as follows:- Date start: 2 May, 2005 7 days a week, 4 weeks a...
10
by: RoadRunner | last post by:
Hi, I have a employee vacation database that has a vacation table that has the employee name, pay week and date of vacation. I have another lookup table with pay week code and date range for the...
5
by: amanda27 | last post by:
I have a database that we use in our department for the status of our projects. In the form when you pick a project from the dropdown list I have a subform that pulls the data entered for the...
2
by: tasmontique | last post by:
I am working on an access 2002 flight schedule database. I am new to access but have some basic understanding of sql and vb6 code. I have learned a lot from this website. Thanks much Hopefully...
3
by: Markw | last post by:
I think this was recently asked but I was a little lost on the example that was used so I'm reasking it with an example I can understand. Also forgive me for such a basic question but I really am...
1
by: John | last post by:
I made an Access application that helps with the financial administration of a company. It imports downloaded files from a bank. For the download the user has to enter the start and end date on a...
3
by: mtek | last post by:
Hi, I am using this code to get the day number of the week: var numbers = entered.split('/'); var daynum = (new Date(Date.UTC(numbers - 1900,numbers,numbers-1))).getUTCDay(); Date comes in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.