The reason why I try to create an user profile is that I need special
settings for the application such as Run Time Options like the applications
icon or to associate a custom help file with a database. In this case it is
recommended to create a user profile because the Access-settings e.g. for
the Jet-engine are valid for all projects running under Access. I'am using
Access 2002. But the mdb-file is Access 2000. If I start Access with a
command line like this:
MSAccess.exe /profile "myprofile" "mydb.mdb"
and there is under the subkey /Office/10.0 no subkey /Profiles
Access creates itself an empty subkey /Profiles and than the error appears
"The profile 'myprofile' that you are using in the command does not exist in
the windows-registry", though I ' ve already created reference for the
Profile "myprofile" as it is described in the Access - help. What goes
wrong?
Here the english version of the microsoft - article which describes the
task:
First you need to create a new Access user profile
***********
Create an Access user profile
Start the Registry Editor
How?
Click the Microsoft Windows Start button.
Click Run.
Type regedit.
Click OK.
Navigate to the \HKEY_LOCAL_MACHINE\SOFTWARE subkey.
Add three nested subkeys by using the following format to ensure uniqueness:
\Your Company\Your Application\Your Application Version Number.
Under the \Your Application Version Number subkey, re-create any of the
subkeys located under the
\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\10.0\Access subkey that
contain values that you want to modify (except the \Profiles subkey, which
you will create in step 7), and then copy the appropriate values under each
subkey.
Modify the values that you want to change.
Navigate to the \HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\10.0\Access
subkey.
Add a new subkey, and name it \Profiles.
Add a string value to the \Profiles subkey, and give it the name that you
want to use on the command line.
For the value's data, enter a string that points to the location of the
subkeys you created in step 3: \SOFTWARE\Your Company\Your Application\Your
Application Version Number
Create a command line for your application that specifies the name you
entered in step 8, and enclose the name in double quotation marks ("). For
example: MSAccess.exe /profile "Your Profile" "Your Application.mdb"
Override any of the Microsoft Jet 4.0 database engine default settings for
Access
Navigate to the \HKEY_LOCAL_MACHINE\SOFTWARE\Your Company\Your
Application\Your Application Version Number profile subkey.
Create a subkey named \Jet\4.0\Engines.
For the first default setting you want to override, add an appropriately
named subkey below the subkey created in step 2. For example, to override
Jet Paradox settings, add a subkey named Paradox.
Add values of the appropriate name and type to that subkey, and then specify
the settings.
You can model your subkeys and values after the subkeys and values in
\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\4.0\Engines.
Repeat steps 3 and 4 for each default setting you want to override.
Note In a Microsoft Access database or Microsoft Access project, it's
possible to have the same registry key set in three different ways; but only
one value can be used. In a case like this, an Access user profile setting
takes precedence over an Access database or Access project setting, which in
turn takes precedence over a Microsoft Jet setting.
***********