Question : creating users in MS Access

hi,

I want to create users in MS Access using ADOX and VB. I know this works when I use the default system database system.mdw specified in the windows registry. Instead, I want to use a separate system database to read in the users for my database. Is there a way to change the path of the system database in code?


catalog.ActiveConnection = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
 "Data Source=C:\vbproj\mylibrary.mdb;" & _
 "jet oledb:system database=C:\vbproj\mysystem.mdw"

This doesn't work. Although the users are added to the mysystem.mdw, it is not read into the mylibrary.mdb database at startup
Any ideas? Thanks.

Answer : creating users in MS Access

Use the workgroup administrator to join the workgroup mysystem.mdw. This will make mysystem.mdw the default workgroup and you won't need the command line option. If your database is a shared database on a network all users will have to use the workgroup administrator to join your workgroup, which also must be on the network or copied to their pc. If a user has access to other databases that use other workgroups it becomes a hassle for them to switch workgroups for each database. Using the command line option in a shortcut makes it easier for users.
Random Solutions  
 
programming4us programming4us