Hi everyone:
I had major problems with people going into my forms and adding controls that I did not want there. So I created a function that would kick the person out of the form if he/she goes into the design view of the form.
If Me!WinUserName = "yourusername" Then
Else
On Error Resume Next
DoCmd.Quit acQuitSaveAll
Application.Quit
End If
The WinUserName function is actually another module to get the your or anyone's username for the workstation they are on.
I think the function is posted on Tek-Tips but I forgot where.
But this will help to keep your form secured.
Cool
I had major problems with people going into my forms and adding controls that I did not want there. So I created a function that would kick the person out of the form if he/she goes into the design view of the form.
If Me!WinUserName = "yourusername" Then
Else
On Error Resume Next
DoCmd.Quit acQuitSaveAll
Application.Quit
End If
The WinUserName function is actually another module to get the your or anyone's username for the workstation they are on.
I think the function is posted on Tek-Tips but I forgot where.
But this will help to keep your form secured.
Cool