PERFORMING TASKS WITH THE REGISTRY API CALLS

You can actually perform all the tasks that are done with the built-in VBA commands quite nicely with API calls, as well as much more. Some tasks are covered in the rest of this chapter:

  • Creating a new Registry key

  • Checking to see if a Registry key already exists

  • Creating a new Registry value

  • Updating a Registry value

  • Deleting a key from the Registry

  • Retrieving a value from the Registry

  • Retrieving all the subkeys for a given Registry key

These tasks are demonstrated by using a utility created in Access that allows you to relink a front-end database to various back-end databases. These back ends are tracked by using the Windows Registry. Figure 18.7 shows the main form used in the example.

Figure 18.7. This ...

Get F. Scott Barker's Microsoft® Access 2000 Power Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.