-
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.
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
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
-
Limits on User Names
by
CWBillow
49 minutes ago -
Limits on User Names
by
CWBillow
49 minutes ago -
MS-DEFCON 4: Mixed bag for March
by
Susan Bradley
1 hour, 28 minutes ago -
Non Apple Keyboards
by
pmcjr6142
8 hours, 37 minutes ago -
How to delete your 23andMe data – The Verge
by
AJNorth
42 minutes ago -
7 common myths about Windows 11 (Microsoft AD)
by
EyesOnWindows
13 hours, 14 minutes ago -
Error updating to Win11 0x8024a205
by
bmeacham
13 hours, 6 minutes ago -
default apps
by
chasfinn
12 hours, 47 minutes ago -
Will MS Works 4 work in MS Win 11?
by
MileHighFlyer
20 hours, 42 minutes ago -
Adding links to text in Word 2000
by
sgeneris
12 hours, 43 minutes ago -
FBI warnings are true—fake file converters do push malware
by
Nibbled To Death By Ducks
14 hours, 21 minutes ago -
Classic and Extended Control Panel — no need to say goodbye
by
Deanna McElveen
4 hours, 18 minutes ago -
Things you can do in 2025 that you couldn’t do in 2024
by
Max Stul Oppenheimer
1 day, 1 hour ago -
Revisiting Windows 11’s File Explorer
by
Will Fastie
10 hours, 12 minutes ago -
Planning ahead for migration
by
Susan Bradley
5 hours, 11 minutes ago -
Yahoo mail getting ornery
by
Tom in Az
12 hours, 56 minutes ago -
Is Spectrum discontinuing email service?
by
Peobody
16 hours, 27 minutes ago -
Practice what you preach! A cautionary tale.
by
RetiredGeek
13 hours ago -
Looking for Microsoft Defender Manuals/Tutorial
by
blueboy714
17 hours, 12 minutes ago -
Win 11 24H2 Home or Pro?
by
CWBillow
13 hours, 43 minutes ago -
Bipartisan Effort to Sunset the ‘26 Words That Created the Internet’..
by
Alex5723
2 days, 23 hours ago -
Outlook new and edge do not load
by
cHJARLES a pECKHAM
3 days, 11 hours ago -
Problem using exfat drives for backup
by
Danmc
3 days, 11 hours ago -
I hate that AI is on every computer we have!
by
1bumthumb
2 days, 13 hours ago -
Change Info in the Settings window
by
CWBillow
3 days, 18 hours ago -
Attestation readiness verifier for TPM reliability
by
Alex5723
4 days ago -
Windows Update says that “some settings are managed b your organization”
by
Ed Willers
3 days, 10 hours ago -
Use of Gmail rejected.
by
CBFPD-Chief115
3 days, 11 hours ago -
WuMgr operational questions
by
Tex265
12 hours, 32 minutes ago -
Beijing’s unprecedented half-marathon: Humans vs. humanoids!
by
Alex5723
4 days, 16 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.