-
WSShane Sargent
AskWoody LoungerForgive me Father, for I am a relative newcomer as well; be sure you take my advice with a healthy dose of salt!
On the server, check to see if a copy of the Microsoft Data Access Components (MDAC) has been loaded; you can quickly check by surfing to the path you specify in the File attribute of your METADATA tag and looking for the ADO .dll you specify. If it hasn’t been loaded, perhaps you can work with the staff at the ISP to see if it is possible. The latest version of the MDAC is available for free download from our friends in Redmond.
-
WSShane Sargent
AskWoody LoungerFirst things first, I guess. Can you or someone at the ISP make sure that the ADO library is loaded on the server?
-
WSShane Sargent
AskWoody LoungerCheck out the Partition function.
-
WSShane Sargent
AskWoody LoungerThanks, Charlotte!
I think your ideas have great merit, and that’s probably the route I’ll go.
-
WSShane Sargent
AskWoody LoungerHere’s the scoop. My company has fewer parking spaces than employees, and we must conduct a random pick for the lucky few that get to park close each week. The flow that I have at present is this:
A table with employee’s names and ID#.
A make table query that uses the Rnd() function against the employee’s ID and top values to get a list of winners,(tbl_Winners).
A bit of code that adds a autonumber field to tbl_Winners.
A select query that joins tbl_Winners with a list of parking space #’s, joined autonumber to Parking#.The form is based on that last select query. As I mentioned before, on that form I’d like to have a “Get new winners” button that launches the flow above and the form refreshes. The problem, of course, is that tbl_Winners is locked by the select query which is the record source of the form.
So, why the make table query in the first place? For HR purposes, they need a static data set they can refer to for present winners (as you might expect, people are pretty grumpy about the prospect of not being able to park close), but also because I need a table that I can add an autonumber field to so I can easily assign a parking spot.
Does this clarify or muddy the idea of what I’m trying to do? As we’re talking about a very small db, I could also post it…
-
WSShane Sargent
AskWoody LoungerOne other quick thought: it is my understanding that queries are saved in an optimized state, recordsets are not. So, in theory, a contest between a saved query and a recordset that performs exactly the same function but is created and executed in code will see the saved query emerge victorious in terms of time to execute.
Charlotte, folks at large, would you agree?
-
WSShane Sargent
AskWoody LoungerLet’s try this: first things first, back up your database.
With that done, I’ll operate under the assumption that each client has an ID of some sort that uniquely identifies them. Let’s simplify things by saying that there are only 3 fields of information you originally received, ID, Name and City, and since then, you’ve added a field of your own called Rank. In a query, you can link your original table with the new table based on the unique ID field. At this point, you can change the query to be an Update action query, and choose to update your original table with data from the new table, but you get to control what fields of information are updated. Make sense so far?
-
WSShane Sargent
AskWoody LoungerA quick caveat here: if you have any trailing spaces in your names, a la
"DaveSchmaveX "
, taking the right-most 1 characters will get you the space. You may want to use the Right() function in conjunction with the Trim() function which will trim off all preceding and trailing spaces:
Right(Trim([FieldName]),1)
-
WSShane Sargent
AskWoody LoungerPost it, and they will come.
-
WSShane Sargent
AskWoody LoungerI found Beginning Access 2000 VBA from Wrox Press to be a well-written book for learning VBA with a specific eye towards Access. I’ve had two employees make their way through the book to great effect.
That said, I’m of the opinion that nothing beats a good instructor led course; see if you can get your employer to pony up the cash!
-
WSShane Sargent
AskWoody LoungerRoberta:
There sure is; check out the Rnd( ) function as well as the Randomize statement in Access help. If you have questions, post back.
A note of caution: I started to develop an app for my company to use for conducting random drug tests of its commercial drivers. After chatting with the folks in HR, we decided to use a 3d party product to minimize our legal liability. I’m not sure that this particularly applies to you, but…
-
WSShane Sargent
AskWoody LoungerBe sure that you have a reference set to the DAO object library; by default, Access 2000 will only include a reference to ADO.
-
WSShane Sargent
AskWoody LoungerDavid:
The web server needs to be told who the user is, either by the traditional “Enter user name and password” form, or possibly by using integrated Windows security if it’s being accessed on an intranet. Once the server knows who the person is, you can write a cookie to the user’s PC which the server can access again at a later time. Of course, if the user clears their cookies, it’s back to square 1!
-
WSShane Sargent
AskWoody LoungerI was actually looking for a way to get the equivalent of an API call to get the login name of the user accessing my ASP page; I should have been more specific in my original post, and it was only after spending a week with the nice folks at AppDev that I was able to figure it out.
If you’re developing on an internal, NT based web, and the virtual directory of your ASP page is set to not allow anonymous access but to use integrated Windows authentication, you can use Request.ServerVariables(“AUTH_USER”) to get the login name. The function I’m using is below; let me know if anyone has a more elegant way to go about it.
””””””””””’Untitled Here is the person logged into the network:
The above derived from the below – Request.ServerVariables(“AUTH_USER”):
-
WSShane Sargent
AskWoody LoungerI’m sorry and a touch embarassed to say that I’m not exactly sure in a relational sense why that’s a necessary step.
That said, I’ve seen it only be a necessary step when the delete query involves a join between multiple tables.
Anybody else able to better illuminate the situation and give both of us a schooling in relational theory?
![]() |
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
-
0Patch, where to begin
by
cassel23
3 hours, 9 minutes ago -
CFPB Quietly Kills Rule to Shield Americans From Data Brokers
by
Alex5723
6 hours, 8 minutes ago -
89 million Steam account details just got leaked,
by
Alex5723
14 hours, 33 minutes ago -
KB5058405: Linux – Windows dual boot SBAT bug, resolved with May 2025 update
by
Alex5723
14 hours, 41 minutes ago -
A Validation (were one needed) of Prudent Patching
by
Nibbled To Death By Ducks
5 hours, 40 minutes ago -
Master Patch Listing for May 13, 2025
by
Susan Bradley
8 hours, 3 minutes ago -
Installer program can’t read my registry
by
Peobody
7 hours, 39 minutes ago -
How to keep Outlook (new) in off position for Windows 11
by
EspressoWillie
3 hours, 27 minutes ago -
Intel : CVE-2024-45332, CVE-2024-43420, CVE-2025-20623
by
Alex5723
10 hours, 47 minutes ago -
False error message from eMClient
by
WSSebastian42
1 day, 1 hour ago -
Awoke to a rebooted Mac (crashed?)
by
rebop2020
1 day, 10 hours ago -
Office 2021 Perpetual for Mac
by
rebop2020
1 day, 12 hours ago -
AutoSave is for Microsoft, not for you
by
Will Fastie
8 hours, 42 minutes ago -
Difface : Reconstruction of 3D Human Facial Images from DNA Sequence
by
Alex5723
1 day, 15 hours ago -
Seven things we learned from WhatsApp vs. NSO Group spyware lawsuit
by
Alex5723
16 hours, 40 minutes ago -
Outdated Laptop
by
jdamkeene
1 day, 21 hours ago -
Updating Keepass2Android
by
CBFPD-Chief115
2 days, 2 hours ago -
Another big Microsoft layoff
by
Charlie
2 days, 2 hours ago -
PowerShell to detect NPU – Testers Needed
by
RetiredGeek
2 hours, 53 minutes ago -
May 2025 updates are out
by
Susan Bradley
1 hour, 24 minutes ago -
Windows 11 Insider Preview build 26200.5600 released to DEV
by
joep517
2 days, 8 hours ago -
Windows 11 Insider Preview build 26120.3964 (24H2) released to BETA
by
joep517
2 days, 8 hours ago -
Drivers suggested via Windows Update
by
Tex265
2 days, 8 hours ago -
Thunderbird release notes for 128 esr have disappeared
by
EricB
4 hours, 7 minutes ago -
CISA mutes own website, shifts routine cyber alerts to X, RSS, email
by
Nibbled To Death By Ducks
2 days, 15 hours ago -
Apple releases 18.5
by
Susan Bradley
2 days, 9 hours ago -
Fedora Linux 40 will go end of life for updates and support on 2025-05-13.
by
Alex5723
2 days, 16 hours ago -
How a new type of AI is helping police skirt facial recognition bans
by
Alex5723
2 days, 17 hours ago -
Windows 7 ISO /Windows 10 ISO
by
ECWS
1 day, 1 hour ago -
No HP software folders
by
fpefpe
3 days 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.