-
WSPeterN
AskWoody LoungerTry moving the code to the On Format event.
-
WSPeterN
AskWoody LoungerTry moving the code to the On Format event.
-
WSPeterN
AskWoody LoungerCode I was using is =”On “& [Date] &”, we had a snowstorm.”
Change the control source for this textbox to:
=”On “& Format([Date], “Long Date”) &”, we had a snowstorm.”
Note that Date is a reserved word in Access and not the best choice of name for a date field. Also, how Long Date displays is entirely dependent on the settings for Long Date in Regional Settings in Control Panels. You could also specify exact formatting rather than Long Date, e.g. “mmm d, yyyy” which would give you January 2, 2010 or “dddd, mmm d yyyy” which will give you Saturday, January 2, 2010 as you indicate.
-
WSPeterN
AskWoody LoungerCode I was using is =”On “& [Date] &”, we had a snowstorm.”
Change the control source for this textbox to:
=”On “& Format([Date], “Long Date”) &”, we had a snowstorm.”
Note that Date is a reserved word in Access and not the best choice of name for a date field. Also, how Long Date displays is entirely dependent on the settings for Long Date in Regional Settings in Control Panels. You could also specify exact formatting rather than Long Date, e.g. “mmm d, yyyy” which would give you January 2, 2010 or “dddd, mmm d yyyy” which will give you Saturday, January 2, 2010 as you indicate.
-
WSPeterN
AskWoody LoungerCode I was using is =”On “& [Date] &”, we had a snowstorm.”
Change the control source for this textbox to:
=”On “& Format([Date], “Long Date”) &”, we had a snowstorm.”
Note that Date is a reserved word in Access and not the best choice of name for a date field. Also, how Long Date displays is entirely dependent on the settings for Long Date in Regional Settings in Control Panels. You could also specify exact formatting rather than Long Date, e.g. “mmm d, yyyy” which would give you January 2, 2010 or “dddd, mmm d yyyy” which will give you Saturday, January 2, 2010 as you indicate.
-
WSPeterN
AskWoody LoungerCode I was using is =”On “& [Date] &”, we had a snowstorm.”
Change the control source for this textbox to:
=”On “& Format([Date], “Long Date”) &”, we had a snowstorm.”
Note that Date is a reserved word in Access and not the best choice of name for a date field. Also, how Long Date displays is entirely dependent on the settings for Long Date in Regional Settings in Control Panels. You could also specify exact formatting rather than Long Date, e.g. “mmm d, yyyy” which would give you January 2, 2010 or “dddd, mmm d yyyy” which will give you Saturday, January 2, 2010 as you indicate.
-
WSPeterN
AskWoody LoungerCode I was using is =”On “& [Date] &”, we had a snowstorm.”
Change the control source for this textbox to:
=”On “& Format([Date], “Long Date”) &”, we had a snowstorm.”
Note that Date is a reserved word in Access and not the best choice of name for a date field. Also, how Long Date displays is entirely dependent on the settings for Long Date in Regional Settings in Control Panels. You could also specify exact formatting rather than Long Date, e.g. “mmm d, yyyy” which would give you January 2, 2010 or “dddd, mmm d yyyy” which will give you Saturday, January 2, 2010 as you indicate.
-
WSPeterN
AskWoody LoungerCode I was using is =”On “& [Date] &”, we had a snowstorm.”
Change the control source for this textbox to:
=”On “& Format([Date], “Long Date”) &”, we had a snowstorm.”
Note that Date is a reserved word in Access and not the best choice of name for a date field. Also, how Long Date displays is entirely dependent on the settings for Long Date in Regional Settings in Control Panels. You could also specify exact formatting rather than Long Date, e.g. “mmm d, yyyy” which would give you January 2, 2010 or “dddd, mmm d yyyy” which will give you Saturday, January 2, 2010 as you indicate.
-
WSPeterN
AskWoody LoungerCode I was using is =”On “& [Date] &”, we had a snowstorm.”
Change the control source for this textbox to:
=”On “& Format([Date], “Long Date”) &”, we had a snowstorm.”
Note that Date is a reserved word in Access and not the best choice of name for a date field. Also, how Long Date displays is entirely dependent on the settings for Long Date in Regional Settings in Control Panels. You could also specify exact formatting rather than Long Date, e.g. “mmm d, yyyy” which would give you January 2, 2010 or “dddd, mmm d yyyy” which will give you Saturday, January 2, 2010 as you indicate.
-
WSPeterN
AskWoody LoungerCode I was using is =”On “& [Date] &”, we had a snowstorm.”
Change the control source for this textbox to:
=”On “& Format([Date], “Long Date”) &”, we had a snowstorm.”
Note that Date is a reserved word in Access and not the best choice of name for a date field. Also, how Long Date displays is entirely dependent on the settings for Long Date in Regional Settings in Control Panels. You could also specify exact formatting rather than Long Date, e.g. “mmm d, yyyy” which would give you January 2, 2010 or “dddd, mmm d yyyy” which will give you Saturday, January 2, 2010 as you indicate.
-
WSPeterN
AskWoody LoungerThanks for the input. I modified the format for the two controls and set the decimal places to 0. But that doesn’t seem to carry through to the PivotTable display as the display is of a count of the one control and a sum on the other. Also tried setting the format in the underlying query which didn’t work either.
Without seeing a sample version of what you are trying to do or a screen shot, I can’t add a lot more except to say that you can right click on the field in the pivot table and change formatting there as well. Otherwise, you would have to post a zipped copy of the database with confidential info removed.
-
WSPeterN
AskWoody LoungerPivot Tables are based on forms and are essentially a different view of the form. If you set the formatting you need for the textbox in question it should appear in the right format for the pivot table. Try setting the format for the textbox to fixed and the number of decimals to 0.
-
WSPeterN
AskWoody LoungerI think you answered your own question.
A boolean value by default is either TRUE or FALSE. Not NULL.
You are using an Integer with 3 values.
Either change the parameter to be an integer and adjust query.
Realistically you need the filter that gets used by the query to only have a filter if true or false and no filter otherwise.
The function is boolean so it cannot retyrn a NULL.
What is the query that receives the function result.I was going at it from the wrong direction. Rather than trying to use a saved query and pass “True or False” to it as a parameter, I am running the query in VBA with Docmd.RunSQL and appending the appropriate WHERE condition via my function.
Thanks for the reply. -
WSPeterN
AskWoody LoungerThanks Hans, that is exactly what I needed.
-
WSPeterN
AskWoody LoungerThanks Wendell and Andrew for the suggestion and syntax about Save as Text. I ran this just now and the current corruption seems to have gone away. I will still probably rebuild the forms, but for the time being, I think I have something I can work with.
![]() |
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 |

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
-
Updates seem to have broken Microsoft Edge
by
rebop2020
1 hour, 53 minutes ago -
Wait command?
by
CWBillow
1 hour, 2 minutes ago -
Malwarebytes 5 Free version manual platform updates
by
Bob99
4 hours, 48 minutes ago -
inetpub : Microsoft’s patch for CVE-2025–21204 introduces vulnerability
by
Alex5723
11 hours, 24 minutes ago -
Windows 10 finally gets fix
by
Susan Bradley
20 hours, 17 minutes ago -
AMD Ryzen™ Chipset Driver Release Notes 7.04.09.545
by
Alex5723
21 hours, 37 minutes ago -
Win 7 MS Essentials suddenly not showing number of items scanned.
by
Oldtimer
16 hours, 10 minutes ago -
France : A law requiring messaging apps to implement a backdoor ..
by
Alex5723
1 day, 10 hours ago -
Dev runs Windows 11 ARM on an iPad Air M2
by
Alex5723
1 day, 11 hours ago -
MS-DEFCON 3: Cleanup time
by
Susan Bradley
6 hours, 30 minutes ago -
KB5056686 (.NET v8.0.15) Delivered Twice in April 2025
by
lmacri
3 hours, 11 minutes ago -
How to enable Extended Security Maintenance on Ubuntu 20.04 LTS before it dies
by
Alex5723
1 day, 22 hours ago -
Windows 11 Insider Preview build 26200.5562 released to DEV
by
joep517
2 days, 2 hours ago -
Windows 11 Insider Preview build 26120.3872 (24H2) released to BETA
by
joep517
2 days, 2 hours ago -
Unable to eject external hard drives
by
Robertos42
13 hours, 14 minutes ago -
Saying goodbye to not-so-great technology
by
Susan Bradley
55 minutes ago -
Tech I don’t miss, and some I do
by
Will Fastie
6 hours, 48 minutes ago -
Synology limits hard drives
by
Susan Bradley
3 days, 6 hours ago -
Links from Microsoft 365 and from WhatsApp not working
by
rog7
2 days, 9 hours ago -
WhatsApp Security Advisories CVE-2025-30401
by
Alex5723
3 days, 12 hours ago -
Upgrade Sequence
by
doneager
3 days, 6 hours ago -
Chrome extensions with 6 million installs have hidden tracking code
by
Nibbled To Death By Ducks
1 day, 11 hours ago -
Uninstall “New Outlook” before installing 2024 Home & Business?
by
Tex265
2 days, 5 hours ago -
The incredible shrinking desktop icons
by
Thumper
4 days, 10 hours ago -
Windows 11 Insider Preview Build 22635.5240 (23H2) released to BETA
by
joep517
4 days, 11 hours ago -
Connecting hard drive on USB 3.2 freezes File Explorer & Disk Management
by
WSJMGatehouse
1 day, 10 hours ago -
Shellbag Analyser & Cleaner Update
by
Microfix
1 day, 4 hours ago -
CISA warns of increased breach risks following Oracle Cloud leak
by
Nibbled To Death By Ducks
4 days, 20 hours ago -
Outlook 2024 two sent from email addresses
by
Kathy Stevens
6 hours, 37 minutes ago -
Speeding up 11’s search
by
Susan Bradley
2 days, 9 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.