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
-
How Backlinking Boosts Your Site’s Trust Score Fast (Awaiting moderation)
by
JamesKic
21 minutes ago -
Have Copilot there but not taking over the screen in Word
by
CWBillow
58 minutes ago -
Windows 11 blocks Chrome 137.0.7151.68, 137.0.7151.69
by
Alex5723
23 hours, 19 minutes ago -
Are Macs immune?
by
Susan Bradley
20 hours, 43 minutes ago -
HP Envy and the Function keys
by
CWBillow
7 hours, 4 minutes ago -
Microsoft : Removal of unwanted drivers from Windows Update
by
Alex5723
1 day, 10 hours ago -
MacOS 26 beta 1 dropped support for Firewire 400/800
by
Alex5723
1 day, 10 hours ago -
Unable to update to version 22h2
by
04om
1 hour, 25 minutes ago -
Windows 11 Insider Preview Build 26100.4482 (24H2) released to Release Preview
by
joep517
1 day, 18 hours ago -
Windows 11 Insider Preview build 27881 released to Canary
by
joep517
1 day, 18 hours ago -
Very Quarrelsome Taskbar!
by
CWBillow
1 day, 4 hours ago -
Move OneNote Notebook OFF OneDrive and make it local
by
CWBillow
2 days, 7 hours ago -
Microsoft 365 to block file access via legacy auth protocols by default
by
Alex5723
1 day, 20 hours ago -
Is your battery draining?
by
Susan Bradley
7 hours, 23 minutes ago -
The 16-billion-record data breach that no one’s ever heard of
by
Alex5723
59 minutes ago -
Weasel Words Rule Too Many Data Breach Notifications
by
Nibbled To Death By Ducks
2 days, 11 hours ago -
Windows Command Prompt and Powershell will not open as Administrator
by
Gordski
1 day, 19 hours ago -
Intel Management Engine (Intel ME) Security Issue
by
PL1
1 day, 19 hours ago -
Old Geek Forced to Update. Buy a Win 11 PC? Yikes! How do I cope?
by
RonE22
1 day, 12 hours ago -
National scam day
by
Susan Bradley
18 hours, 35 minutes ago -
macOS Tahoe 26 the end of the road for Intel Macs, OCLP, Hackintosh
by
Alex5723
1 day, 15 hours ago -
Cyberattack on some Washington Post journalists’ email accounts
by
Bob99
3 days, 12 hours ago -
Tools to support internet discussions
by
Kathy Stevens
2 days ago -
How get Group Policy to allow specific Driver to download?
by
Tex265
3 days, 3 hours ago -
AI is good sometimes
by
Susan Bradley
3 days, 19 hours ago -
Mozilla quietly tests Perplexity AI as a New Firefox Search Option
by
Alex5723
3 days, 9 hours ago -
Perplexity Pro free for 12 mos for Samsung Galaxy phones
by
Patricia Grace
4 days, 19 hours ago -
June KB5060842 update broke DHCP server service
by
Alex5723
4 days, 18 hours ago -
AMD Ryzen™ Chipset Driver Release Notes 7.06.02.123
by
Alex5723
4 days, 22 hours ago -
Excessive security alerts
by
WSSebastian42
3 days, 13 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.