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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Temporarily change permissions via VBA

Status
Not open for further replies.

nickjar2

Programmer
Jun 20, 2001
778
US
I am quite stuck on this one. I have a secured db where certain users are unable to delete records from a certain table.
Under specific circumstances, I need my code to assign a user with delete privileges, delete a record, and then remove the delete rights away from the user.
I have tried DAO and ADO and ADOX. Here is some code i found in help reagrding ado and adox:

cnn.Provider = "Microsoft.Jet.OLEDB.4.0"
cnn.Open "data source=" & CurrentProject.Path & "\gl5-tempV1.2e.mdb;" & _
"jet oledb:system database=" & CurrentProject.Path & "\NL_Gl5.mdw"

and i get 'Not valid account name or path'

Any ideas?? Cheers! Hope this is ok. If not, just let me know.

Nick (Everton Rool OK!)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top