Hi all, need some help with something that seems to me very basic, but for some reason I just can't get it working. Im using access 2003 and I have part of this code in my password page. essentially, if the person logging in is not an admin, I want the program to restart with minimal menu and no editing options. For some reason, when it restarts, i get an error message telling me that the "The command line I used to start microsoft Access contains an option that MS access does not recognize"
I also get an error message for the CurrentDb.name.
If Restart Then
'Close database and re-open
stAppName = "MSACCESS.exe " & CurrentDb.Name
Call Shell(stAppName,1)
DoCmd.Quit
I know I can use the security tool built into Access, but found that this was a better option for my application.
thanks in advance
Martin
I also get an error message for the CurrentDb.name.
If Restart Then
'Close database and re-open
stAppName = "MSACCESS.exe " & CurrentDb.Name
Call Shell(stAppName,1)
DoCmd.Quit
I know I can use the security tool built into Access, but found that this was a better option for my application.
thanks in advance
Martin