-
WSSimonC
AskWoody LoungerThat’s marvellous – and bizarre. Armed with this information I reapplied SP2 and do you know what? It works fine! I didn’t have to run Dcomcnfg.exe or anything. That is strange. Nevertheless I’m one happy bunny now, particularly as it solves my MS Access problem (see Post 97731).
Thanks a lot.
Simon
-
WSSimonC
AskWoody LoungerOooh, that’s interesting. On my main development machine I’m running A2K (9.0.3821 SR1) and Win 2K (SP1). On my other (standalone) PC I’m running A2K with no service packs installed and Win 2K (SP2). The query runs as it should on my other machine. I wanted to upgrade my other PC to A2K SR1 (just to prove to myself that it isn’t a difference in the query results in different Access versions), but I can’t seem to download the right set of files (I can’t use the standard online installation on my other PC as it has no internet connection).
Most irritatingly, I can’t upgrade my main PC to W2K SP2. I’ve tried and I always get problems – particularly with the Search for Files and Folders functionality.
Most PCs that will run my Access application are using NT 4 Workstation, so hopefully the problem won’t occur there either. Thanks for your help.
Simon
-
WSSimonC
AskWoody Lounger> Would they be better as saved queries?
>Or is there a time lag inherent with loading Access (or any DB) first time around?Probably and yes. If there are no issues in saving the queries then do so. If the query is built up at run-time because its functionality depends on various other factors that can only be determined at run-time then it becomes a balancing act. Do you complicate the query so it can cater for the various situations; do you create multiple queries; or is it easier to leave things as they are?
There is definitely an extra time lag before the first access to an Access DB through ADO which has nothing to do with compiled or uncompiled queries – it happens even if the Access DB contains nothing more than tables which you attempt to access, as tables, through ADO. I don’t imagine there’s anything that can be done about it, but someone may know of a way of minimising it.
Hope this helps,
Simon
-
WSSimonC
AskWoody LoungerIf you’ve got the start and end times of the existing bookings you can elaborate on this by doing something like:
SELECT BookingDate FROM tblBooking WHERE BookingStart[ThisBookingStart] GROUP BY BookingDate HAVING BookingDate =[ThisBookingDate] AND Count(BookingDate) >=[MaxBookings]
[ThisBookingDate] is whichever date you’re trying to book on and [ThisBookingStart] and [ThisBookingEnd] are the start and end ranges of the period you’re trying to book. MaxBookings is the maximum number of bookings allowed at any given time. You can get these values into the query a number of ways.
If the query returns a record, you can’t book a session, otherwise there are vacant PCs and you can.
-
WSSimonC
AskWoody LoungerI’m a bit confused as to what you’re trying to do, but I’ll have a go…
Firstly, if you just want the year, you can use the Year() function. To get the current year, use Year(Date()).
I’m not quite sure if you want to store this date into one record of a different table or in each record that you’ve appended. If it’s the latter than add Year(Date()) as a column in the append query and set the field you’re appending to accordingly.
If you just want to update a single value in a record in a table, you could do it in code, but if you know which record(s) you want to update then you could create an update query containing something like:
UPDATE CR_table SET CRID = Year(Date())
If this table contains multiple records and you only want to update one of them then you can add a WHERE clause to the update query.
Hope this helps,
Simon.
-
WSSimonC
AskWoody LoungerUnless you need to find the sum total of differences for a number of records for the same person, you don’t need the “SUM” part ADMITtoEOM:[ENDING DATE]-[ADMIT DATE] should do the trick.
However, it doesn’t seem to work properly if you’re relying on the query assuming all undefined “variables” are query parameters, you need to actually define [ENDING DATE] as a parameter of type DateTime in the query.
A further alternative is to use ADMITtoEOM:DateDiff(“d”,[ADMIT DATE],[ENDING DATE]).
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
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
-
Can’t make Opera my default browser
by
bmeacham
26 minutes ago -
Do not Fall For This Purdentix Scam (Awaiting moderation)
by
elizabethkaur56
6 hours, 24 minutes ago -
*Some settings are managed by your organization
by
rlowe44
16 hours, 23 minutes ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
18 hours, 37 minutes ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
19 hours, 2 minutes ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
1 day, 4 hours ago -
AI slop
by
Susan Bradley
1 day, 3 hours ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
1 day, 5 hours ago -
Two blank icons
by
CR2
14 hours, 52 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
1 day, 14 hours ago -
End of 10
by
Alex5723
1 day, 16 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
14 hours, 48 minutes ago -
test post
by
gtd12345
1 day, 22 hours ago -
Privacy and the Real ID
by
Susan Bradley
1 day, 13 hours ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
1 day, 5 hours ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
2 days, 3 hours ago -
Upgrading from Win 10
by
WSjcgc50
14 hours, 58 minutes ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
18 hours, 31 minutes ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
2 days, 18 hours ago -
The story of Windows Longhorn
by
Cybertooth
2 days, 6 hours ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
2 days, 20 hours ago -
Are manuals extinct?
by
Susan Bradley
6 hours, 29 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
3 days, 6 hours ago -
Network Issue
by
Casey H
2 days, 17 hours ago -
Fedora Linux is now an official WSL distro
by
Alex5723
3 days, 18 hours ago -
May 2025 Office non-Security updates
by
PKCano
3 days, 18 hours ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
3 days, 20 hours ago -
pages print on restart (Win 11 23H2)
by
cyraxote
2 days, 21 hours ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
3 days, 22 hours ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
3 days, 22 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.