Hi there.
I have a slight problem as i am working on a database which is to be
implemented on another system and the only way i have of transferring the
database across is through a portably drive (effectivly a CD) i need to be
able to retain all of the data including the logon screen and all the user
rights as well.
Thanks Simeon.
You will have to transfer the database (the .mdb file) and the
workgroup security file (the .mdw file). The security files stores
username, passwords, groups and group affiliations; the database
stores the object permissions (i.e which users/groups can open/run etc
which objects). The "logon screen" will travel with the database.
Are you installing this with any type of installer? I ask because
you'll probably want to provide the user with a shortcut to open your
program with the correct security file - otherwise, when the user
opens your application they'll either be told they aren't using the
correct workgroup file, or will be able to open it directly with no
logon screen. If you use an installer, it could build a shortcut with
a Target something like this:
"Full Path To MSACCESS.exe" "Full path to your database" /wrkgrp "Full
path to your security file"
This will open your db with the correct security file, and will prompt
the user for their login. If you use an installer, you can set these
various paths at installation (so the user can install your program
anywhere they wish and it will still work). There are several free
Installers ... Inno Setup is one I used in the past which worked very
well.