-
WSmcneilkm
AskWoody LoungerJanuary 11, 2016 at 10:49 am in reply to: ACCESS 2007 Is there a way to check Computer Date format in VBA #1546701it is in fact stored as a date field… I fooled around with that idea awhile back but could not make it work consistently because when retrieving those records based on that key I used a form to trap the RateID and RateVersion and then lookup the key based on those variables, however some computers would be set to 2 digits and some would be 4 digit years and computers creating the key would always end being different from computers retrieving the records so I was hoping to find a way to determine the system date and notify user to set the global ddate settings all the same
-
WSmcneilkm
AskWoody LoungerJanuary 11, 2016 at 7:02 am in reply to: ACCESS 2007 Is there a way to check Computer Date format in VBA #1546668I do it thru an update query:
SQL version is:
UPDATE RATES SET RATES.RateID = RATES!RateName & RATES!RateVersion & ” ” & RATES!Code
WHERE (((RATES.RateID) Is Null));RateID = a text string of a name we give the rate
RateVersion = the date the rate was established… this is where it gets messed up… the rate version is a date formated field and when the person running the query has a system date that consists of a 2 digit year it will complete the query with a 2 digit year… then when a user who has a system date format as a 4 digit year tries to process something that requires it to find that key thru a “DLOOKUP” function I pass the RateID and RateVersion to the function from a form and it does not find it because of the date format mismatch.Does this help ?
-
WSmcneilkm
AskWoody Loungerthat did it thank you
-
WSmcneilkm
AskWoody LoungerI have now tried the second option in your reply Wendell… I believe at this point all is lost… Thank you for your help
-
WSmcneilkm
AskWoody LoungerThank you Wendell, I tried the first part of your response and got an error every time it tried to import any forms from the backup… error stated it could not find first record or there were no related records… it gave me the option to hit “OK” and then attempted to import the next form… 4 out of approx 30 forms were eventually imported… I am attempting the decompile next but was curious about the errors… any idea what that error might relate to, seems strange to talk about records in an error associated with importing forms… all other parts of the database imported fine exept 2 VB modules which I could understand if the VBA is gone
-
WSmcneilkm
AskWoody LoungerThank you both… learning a lot, especially how to spell… turns out after reading your replies I went back to the table where where the update is supposed to occur and I realized that I left the “C” off of the “EXEC” part of the name when I created the table, which actually explains several other issues I was having as well… Again thank you, this lounge is truly a great community
-
WSmcneilkm
AskWoody LoungerWendll,
that is exactly what I am looking for thank you… if one or more of the detail records show a “yes” in the field then the whole report has to be labelled different than if none of the records show “yes” in the field… I wanted to accomplish this by an invisible label that gets set to visible if detail records contained “yes”… the Yes/No field is contained in the detail… I had not thought about the hidden sum field, i presume something as simple as If statement that sum is greater than or equal to 1, then set visible property to true, and do this in the OnPrint or OnFormat event of the header itself
-
WSmcneilkm
AskWoody LoungerIs this even possible… 2 hours searching google and I cannot find any place where a specific control within a report header is referenced from the detail section or vice versa
-
WSmcneilkm
AskWoody Loungerthank you, that worked perfect
-
WSmcneilkm
AskWoody LoungerThank you Wendell… that was it… up and running again
-
WSmcneilkm
AskWoody Loungerthis was a huge help… thank you
-
WSmcneilkm
AskWoody LoungerYes i specifically go into the design view of the form and look at for example the “On CLick” Event for a button. The vba is actually missing. It happens only on this database, i have four other that were converted and am not having any issues with them.
-
WSmcneilkm
AskWoody LoungerShouldn’t this line use vMon instead of vSun?
Hans,
Now I feel really stupid. Sorry to have taken your time on this. I appreciate the help though.
Thanks
Kevin -
WSmcneilkm
AskWoody LoungerI really appreciate everyone looking at this. The one record that should pull is for the line:
“vInPut430TarsMon = Nz(DSum(“[Input 430 TARs]”, “tbl_Inputs_Outputs”, “[badge number] = ‘” & 503843 & “‘ and ([Activity Date] = #” & vSun & “#)”), 0)”
My apologies for copying the wrong line. The [Badge Number] field is a number field. I tried to take the single quotes out but it still gave me a zero. The right answer should be three.
The other thing that I noticed is usually the “AND” part of the statement is blue and in caps. In this case it is not. Is that because it is part of the overall string?
Thanks
Kevin -
WSmcneilkm
AskWoody LoungerCould you attach a stripped down and zipped copy of the database that demonstrates the problem?
For now hold shift key when opening. The form called “frm_Report_Criteria” opens the parameters for the report “rpt_Op_Log_2”. If you select 11/21/2009, 400, 401, and 503843 in the drop downs respectively. This should find a record meeting that criteria in the “tbl_Inputs_Outputs” table. In the On Print event of that report you will find the dsum calc’s.
![]() |
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
-
Network Issue
by
Casey H
3 hours, 8 minutes ago -
Fedora Linux is now an official WSL distro
by
Alex5723
8 hours, 36 minutes ago -
May 2025 Office non-Security updates
by
PKCano
9 hours, 2 minutes ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
10 hours, 58 minutes ago -
pages print on restart (Win 11 23H2)
by
cyraxote
10 hours, 13 minutes ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
13 hours, 9 minutes ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
13 hours, 11 minutes ago -
Proton to drop prices after ruling against “Apple tax”
by
Cybertooth
20 hours, 32 minutes ago -
24H2 Installer – don’t see Option for non destructive install
by
JP
4 hours, 54 minutes ago -
Asking Again here (New User and Fast change only backups)
by
thymej
1 day, 7 hours ago -
How much I spent on the Mac mini
by
Will Fastie
7 hours, 18 minutes ago -
How to get rid of Copilot in Microsoft 365
by
Lance Whitney
2 hours, 29 minutes ago -
Spring cleanup — 2025
by
Deanna McElveen
1 day, 13 hours ago -
Setting up Windows 11
by
Susan Bradley
8 hours, 48 minutes ago -
VLC Introduces Cutting-Edge AI Subtitling and Translation Capabilities
by
Alex5723
1 day, 9 hours ago -
Powershell version?
by
CWBillow
1 day, 10 hours ago -
SendTom Toys
by
CWBillow
6 hours, 39 minutes ago -
Add shortcut to taskbar?
by
CWBillow
1 day, 14 hours ago -
Sycophancy in GPT-4o: What happened
by
Alex5723
2 days, 6 hours ago -
How can I install Skype on Windows 7?
by
Help
2 days, 5 hours ago -
Logitech MK850 Keyboard issues
by
Rush2112
1 day, 12 hours ago -
We live in a simulation
by
Alex5723
2 days, 20 hours ago -
Netplwiz not working
by
RetiredGeek
2 days, 7 hours ago -
Windows 11 24H2 is broadly available
by
Alex5723
3 days, 8 hours ago -
Microsoft is killing Authenticator
by
Alex5723
10 hours, 48 minutes ago -
Downloads folder location
by
CWBillow
3 days, 15 hours ago -
Remove a User from Login screen
by
CWBillow
2 days, 11 hours ago -
TikTok fined €530 million for sending European user data to China
by
Nibbled To Death By Ducks
3 days, 6 hours ago -
Microsoft Speech Recognition Service Error Code 1002
by
stanhutchings
3 days, 6 hours ago -
Is it a bug or is it expected?
by
Susan Bradley
1 day, 8 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.