-
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
-
New Phishing Campaign Targeted at Mac Users
by
Alex5723
35 minutes ago -
Backing up Google Calendar
by
CWBillow
5 hours, 27 minutes ago -
Windows 11 Insider Preview build 27818 released to Canary
by
joep517
18 hours, 4 minutes ago -
File Naming Conventions (including Folders)
by
Magic66
1 hour, 37 minutes ago -
Windows 11 Insider Preview Build 26100.3613 (24H2) released to Release Preview
by
joep517
1 day, 1 hour ago -
Microsoft sends emails to Windows 10 users about EOS
by
Alex5723
12 hours ago -
Outlook 2024 importing Calendar and Contacts – FAILURE
by
Kathy Stevens
2 hours, 15 minutes ago -
Adding Microsoft Account.
by
DaveBRenn
1 day, 2 hours ago -
Windows 11 Insider Preview build 26120.3576 released to DEV and BETA
by
joep517
2 days, 2 hours ago -
Windows 11 Insider Preview Build 22635.5090 (23H2) released to BETA
by
joep517
2 days, 2 hours ago -
Windows 11 won’t boot
by
goducks25
2 days, 16 hours ago -
Choosing virtual machine product for Windows on Mac
by
peterb
1 day, 16 hours ago -
Rest in Peace
by
Roy Lasris
2 days, 21 hours ago -
CISA : Install Windows March 2025 Updates until April 1 or shut down PC.
by
Alex5723
2 days, 20 hours ago -
Google proposes users with incompatible Win 11 PCs to migrate to ChromeOS Flex
by
Alex5723
2 days, 21 hours ago -
Drivers for Epson Perfection V600 Photo – scanner
by
Bookman
2 days, 2 hours ago -
Long Time Member
by
jackpet
3 days ago -
Woody Leonhard (1951–2025)
by
Will Fastie
27 minutes ago -
What I learned from Woody Leonhard
by
B. Livingston
2 days, 17 hours ago -
Windows Settings today
by
Simon Bisson
3 days, 8 hours ago -
Mail Merge magic in Microsoft Word
by
Peter Deegan
6 hours, 28 minutes ago -
Businesses in the crosshairs
by
Susan Bradley
1 day, 22 hours ago -
Double-row taskbar?
by
CWBillow
13 hours, 59 minutes ago -
Upgrading non-supported HW to Win 11
by
RetiredGeek
23 hours, 34 minutes ago -
Audio locks up after 15 minutes
by
WSArthurR
23 hours, 5 minutes ago -
Copilot app uninstalled
by
Susan Bradley
21 hours, 17 minutes ago -
Strongbox Password Manager Sold to Applause Group – Cost Escalation Imminent
by
Paul T
4 days, 18 hours ago -
SharePoint
by
CBFPD-Chief115
3 days, 16 hours ago -
Google replacing Google Assistant with Gemini AI assistant
by
Alex5723
4 days, 20 hours ago -
You can no longer stop Alexa from sending voice recordings to Amazon
by
Alex5723
4 days, 21 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.