Hi List,
I have another novice question for the board. I have gone through declaring a record set and all the other overhead to retrieve one record (row) from a table. Is it possible to just “read a record by the unique key of a select”?
TIA
ElDinosaurio
![]() |
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 |
-
‘Random Read’ (Access 2000/VBA)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » ‘Random Read’ (Access 2000/VBA)
- This topic has 7 replies, 4 voices, and was last updated 23 years, 5 months ago.
AuthorTopicWSElDinosaurio
AskWoody LoungerDecember 29, 2001 at 11:54 pm #364653Viewing 1 reply threadAuthorReplies-
WSR. Hicks
AskWoody LoungerDecember 30, 2001 at 12:17 am #560538 -
WSElDinosaurio
AskWoody Lounger -
WBell
AskWoody_MVPDecember 31, 2001 at 6:26 pm #560875Things like VSAM reads are generally hidden from the user in Access – for one thing Access isn’t a sequential file, it’s relational. So things are stored in random places. Record access is generally done using SQL if you want to restrict the recordset or retrieve it in a specific order. If you just want to get some records, you can open a recordset at the table level and move through it. Since you are using 2000, you have to decide whether to use DAO or ADO. ADO is new technology in Access 2000, but some things you can do in DAO you can’t do in ADO, so it gets a little complicated if you want to do more than the mundane things. All this assumes that you want to work with records in code – but 90% of Access database is done using either Jet or the MSDE interface, so code is generally associated more with event handling than with scrolling through records or editing records.
As an example, to display a single record on a form that is bound to a table simply involves setting a filter on the appropriate field to select the record or records that you want, and Access/Jet does the rest. It’s a whole different paradigm than the mainframe world, and is a much faster development process. Hope this helps.
-
WSElDinosaurio
AskWoody LoungerJanuary 1, 2002 at 8:24 pm #560996Wendell,
Thanks for answering. The object of my question is to put my 30+ years of IT to work in this new environment. I am working in an unbound form and trying to get data from the data base on a per record basis as opposed to a per field basis which i can do with Dlookup. I thought that setting up a record set was a lot of overhead for the machine when it is busy and was wondering if there was a simple , “Open Input, Read by criteria, Close” scenario that would not use as many resources as I believe that setting up a record set uses.I am not sure what Access/Jet or MSDE is. I certainly do understand that this environment is much different from the mainframe world. BUT . . . The more the software does for you, the more it does to you. I remember RPG.
Thanks again.
ElDinosaurio
-
WScharlotte
AskWoody LoungerJanuary 1, 2002 at 11:13 pm #561010Actually, you can do something like that using ADO and disconnected recordsets, but I wouldn’t suggest you start out trying to work with them before you become more familiar with the way Access works. Otherwise, you’ll confuse yourself with the similarities and go nuts over the differences.
Unbound forms are great, and I use them frequently. But I’d suggest you start off with bound forms and get a feel for what the application can do for you without a lot of programming before you make any decisions about how you want to make it work. Unbound forms require programming, and you still need a recordset to get the data for the unbound form, since you definitely don’t want to do it using something like DLookup.
Jet is the database engine that Access and VB use by default. MSDE (Microsoft Database Engine) is the personal version of SQL Server that comes with Access/Office 2000. If you create an ADP, you connect either to an MSDE database or a regular SQL Server database. If you build an MDB, all the local tables in the MDB are Jet tables, and you have to talk to SQL Server/MSDE either through ODBC links or using ADO and the MSSQL OLE DB provider.
Some of us have posted samples and demos in the Lounge in the past. You might want to do a Lounge Search on sample database and take a look at some of those to see various ways things can be done.
-
WSElDinosaurio
AskWoody Lounger
-
-
-
-
-
WScharlotte
AskWoody LoungerDecember 30, 2001 at 4:58 am #560553If you’ve created and opened a recordset, you already are reading that record.
Could you explain what you’re trying to do? SQL doesn’t know about keys, it just uses them in joins. Are you talking about a unique key returned in the recordset? Or are you looking for an alternate method of reading the information in the record?
Viewing 1 reply thread -

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
-
Windows 11 ad from Campaign Manager in Windows 10
by
Jim McKenna
11 hours, 52 minutes ago -
Small desktops
by
Susan Bradley
1 hour, 3 minutes ago -
Totally disable Bitlocker
by
CWBillow
6 hours, 44 minutes ago -
Phishers extract Millions from HMRC accounts..
by
Microfix
20 hours, 32 minutes ago -
Windows 10 22H2 Update today (5 June) says up-to-date but last was 2025-04
by
Alan_uk
22 hours, 24 minutes ago -
Thoughts on Malwarebytes Scam Guard for Mobile?
by
opti1
1 day, 1 hour ago -
Mystical Desktop
by
CWBillow
1 day, 1 hour ago -
Meta and Yandex secretly tracked billions of Android users
by
Alex5723
7 hours, 3 minutes ago -
MS-DEFCON 2: Do you need that update?
by
Susan Bradley
15 hours, 57 minutes ago -
CD/DVD drive is no longer recognized
by
WSCape Sand
1 day, 16 hours ago -
Windows 11 24H2 Default Apps stuck on Edge and Adobe Photoshop
by
MikeBravo
1 day, 19 hours ago -
North Face and Cartier customer data stolen in cyber attacks
by
Alex5723
1 day, 17 hours ago -
What is wrong with simple approach?
by
WSSpoke36
1 day, 10 hours ago -
Microsoft-Backed Builder.ai Set for Bankruptcy After Cash Seized
by
Alex5723
2 days, 5 hours ago -
Location, location, location
by
Susan Bradley
19 hours, 44 minutes ago -
Cannot get a task to run a restore point
by
CWBillow
2 days, 6 hours ago -
Frustrating search behavior with Outlook
by
MrJimPhelps
1 day, 21 hours ago -
June 2025 Office non-Security Updates
by
PKCano
2 days, 17 hours ago -
Secure Boot Update Fails after KB5058405 Installed
by
SteveIT
20 hours, 4 minutes ago -
Firefox Red Panda Fun Stuff
by
Lars220
2 days, 17 hours ago -
How start headers and page numbers on page 3?
by
Davidhs
3 days, 3 hours ago -
Attack on LexisNexis Risk Solutions exposes data on 300k +
by
Nibbled To Death By Ducks
2 days, 6 hours ago -
Windows 11 Insider Preview build 26200.5622 released to DEV
by
joep517
3 days, 12 hours ago -
Windows 11 Insider Preview build 26120.4230 (24H2) released to BETA
by
joep517
3 days, 12 hours ago -
MS Excel 2019 Now Prompts to Back Up With OneDrive
by
lmacri
3 days, 2 hours ago -
Firefox 139
by
Charlie
2 days, 18 hours ago -
Who knows what?
by
Will Fastie
1 day, 21 hours ago -
My top ten underappreciated features in Office
by
Peter Deegan
3 days, 13 hours ago -
WAU Manager — It’s your computer, you are in charge!
by
Deanna McElveen
1 day, 6 hours ago -
Misbehaving devices
by
Susan Bradley
2 days, 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.