Ogedei said:
Is there a way to use an mdw but not have the login prompt?
We need the security of the MDW and such but we want to use their network login as validation of who they are. One less password for everyone to manage.
Yes you can if you are willing to have your users open the secured db with a unique shortcut.
I do this for a few apps if I want it to be secured but I do not want the user to have to manualy log into the application. I create a unique shortcut that I send to each user. I use a self extracting program to install the shortcut where I want it off of the users Start button. The target field in the shortcut looks like this [all in one line]...
"C:\Program Files\Microsoft Office\Office11\MSACCESS.EXE" /wrkgrp "\\Server\Partition\Directory\WorkgroupFile.mdw" "\\Server\Partition\Directory\DatabaseFile.mdb" /user UserName /pwd Password
It is okay if the user discovers the values in the target field since they would be logging into the program anyway. I also store the users login info in a table so that I can track who is logging into the app and when.
You could incorporate an extra step to verify the users network login name into your db to verify that the user is who you expect them to be. The Environ() function will allow you to extract that info. Here is quick example...
Msgbox Environ("UserName")
MsgBox Environ("ComputerName")
You could compare that info with the values in a table to ensure that the user is who you expect and that they are logging in from their own PC.
I trust that your db is split and that each user has a copy of the front end installed to their hard drive and that each front end is linked to one backend on the server. The shortcut, front end and the Workgroup.mdw file should all be on the users hard drive and you will have to update those files anytime you modify the database [front end or back end]. The shortcut, front end and the Workgroup.mdw files should not be shared.