Collect and Display Information on the System and the Access Installation
Problem
Your application really needs to know some information about the computer on which it’s running. In addition, you’d like to add some professional polish and an About... box that shows information about the computer, the resources, and the user. Access doesn’t provide any way to find this information. How can you gather it?
Solution
You can use the Windows API to retrieve information about the system on which your program is running. By using these various functions as the control sources for unbound controls, you can present a selection of system information to your user.
Load 11-13.MDB and open frmSystemInfo in regular
form view (see Figure 11-15). This form includes five
“pages” of information about the current computer and its
resources. If you like the look of this form, use it as-is in your
own applications. (You’ll need to import the form,
frmSystemInfo, its subform, fsubInfo, and the module, basSystemInfo,
into your application, as directed in Step 1.)

Figure 11-15. frmSystemInfo shows memory status information
To create a similar form in your own application, follow these steps:
Import the module basSystemInfo from
11-13.MDBinto your own application. This module contains all the constants, API declarations, and wrapper functions that you’ll need.Create a new form. Place an unbound text box ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access