Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

change user permissions until table built

Status
Not open for further replies.

idono

Technical User
Jan 16, 2002
71
US
Help!

How can I change the permissions of the current user so I can build a table then remove the granted permissions. I have thought of an ADO connection to the current database, but there just has to be a simple function to grant deleting and rebuilding a table then removing those permissions.

Any ideas would be greatly appreciated.

 
For those interested this is how to do it.

Dim wks as Workspace

Set wks = DBEngine.CreateWorkspace("NameOfWks", "UserName", "Password")

This will log the user in programmatically as whatever user is specified. They can then perform any operations the username has associated with it.

Doug
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top