Results 1 to 1 of 1
  1. #1
    Join Date
    Mar 2003
    Posts
    17

    Exclamation Unanswered: Substitute for Custom Database Property

    I need to store a string and was going to use a custom database prpgerty but they are not avaialable in code in an Access 2000 ADP file just an MDB.

    Any suggestions? Code examples would be appreciated as well.

    Mitch

    ===========
    I ended up writing to the registry to do what I needed.

    To store a value to the registry, use the SaveSetting command in VBA.

    For example:

    SaveSetting appname:="MyApp", Section:="Startup", _
    Key:="Top", setting:=75

    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:

    HKEY_CURRENT_USER\Software\VB and VBA Program Settings\
    Last edited by mistux; 03-27-03 at 15:54.
    Thanks for your help, Mitch

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •