Hi,
I created a procedure which I call back on the onload property of a form.this is to check if the current user logged in is an administrator, and if not to deny access to the form. That code work fine.
I have a problem in the function.
I want to get the name of the current form on load.
This is the procedure I have
Then the code follows to check if user is administrator.
This gives me errors.
Could someone please help me to define the code. I need to set the object to the current form on load.
The reason is that I can just call the function on any form I like to check if the user is an administrator. Otherwise should I write a ne function for every form?
Thanks in advance
I created a procedure which I call back on the onload property of a form.this is to check if the current user logged in is an administrator, and if not to deny access to the form. That code work fine.
I have a problem in the function.
I want to get the name of the current form on load.
This is the procedure I have
Code:
Dim MyObject As Object Set MyObject as Me.Form.OnLoad
This gives me errors.
Could someone please help me to define the code. I need to set the object to the current form on load.
The reason is that I can just call the function on any form I like to check if the user is an administrator. Otherwise should I write a ne function for every form?
Thanks in advance
Comment