I know that people are going to want to attack me for this question, if that is you, then please just move on.
I want to know if it's possible to change the currentuser temporarily using code.
Why?
Because I am moving away from the security and just having a logon database which copies a database and gives each user their own database and I will then store their user name in a table in their database.
The reason why I want to change the currentuser is because I have loads of queries that write the currentuser into various tables and I don't want to have to go and change them all and add textboxes to forms etc... and then have to write code to then get the username etc... if there is some easy code available like set currentuser = "Jim".
I would rather be lazy (negative) or work smarter (positive)
I want to know if it's possible to change the currentuser temporarily using code.
Why?
Because I am moving away from the security and just having a logon database which copies a database and gives each user their own database and I will then store their user name in a table in their database.
The reason why I want to change the currentuser is because I have loads of queries that write the currentuser into various tables and I don't want to have to go and change them all and add textboxes to forms etc... and then have to write code to then get the username etc... if there is some easy code available like set currentuser = "Jim".
I would rather be lazy (negative) or work smarter (positive)