Not sure but i think the answer is
Set db = OpenDatabase _
("C:\Projects\CustomReports\Hermann\ctx.mdb", _
False, False, "Ms Access;User = currentuser, PWD=****")
currentuser returns the user id and by using it lke this it will log the user in using their ID rather than...
Rather then deleting the line of code try using a flag to set a condition then if the condition is true the line of code is executed else ignored.
Laters
Max:-)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.