|
Custom Registry Settings in AccessProvided by: Steve Clark, Senior Project ManagerTo store a value to the registry, use the SaveSetting command in VBA. For example:
This statement will make a new Key named "MyApp", a sub key named "Startup", a String value named "Top" with a value of "75" in the following location:
To view the change to the registry, click on the Window Start Button and click the Run... option. Enter: Regedit and click OK. The registry will open, and you can browse the tree to locate the entry. (Don't delete or modify anything, as it may have detrimental effects on your system!) To delete the registry keys that you made, use:
To retrieve your custom settings, you can use the GetSetting or the GetAllSettings commands. See the Access Help File for more information. |