mmcdonal:
Thanks for the quick reply. Yes that does help, in a way I wasn't looking for. First, let me explain my position. You may be able to help me in other ways I'm not looking for.
I'm in the Maintenance Dept. The IT Dept have resourses to help the Business and Production Depts, but have little for the Maintenance Dept. We also get little help from Engineering. It might be best this way. So, my position is Technical Suppport Electrician. I keep the Autocad drawings updated and organized and provide a database of the electrical loads, mostly motors. I get what general knowledge I can, but mostly concentrate on what I need to know for a particular need.
The IT Dept gave me owner privelages to a SQL Server Database with the understanding that no support would be provided. Everything I do, I try to imagine what would happen if I "Won The Lottery."
I'm grateful that you mentioned the Environ$() function. I didn't know about it before, and plan on using the "Username" and "Temp" parameters.
I had considered doing as you suggest and having a table of user names to determine the the privelages of the user. I'm reluctant to do so, because if I "Win The Lottery" the table won't be maintained. I would rather rely on the User Group that is assigned by IT. This would give the the user privelages already set up in the Database and would be the same privelages granted by making controls visible.
Since I wrote the first post. I discovered that I could use a variable with the Table data type as an output parameter on the stored procedure. This could then be read into a Recordset in the adp/ade program. The Is_Member() SQL Server function would then be available to determine the privaleges of the user and make cetain controls visible.
What are your or anyone elses thoughts on this?
|