L
Lisab
Is there a better way to use objects and code from one Access application in
other Access applications.
I have an Access 2007 application (the Login Tool). The Login Tool is added
as a reference in several other front-end Access Applications.
(VBA Code Window--Tools--References)
The Login Tool
•Displays a login form to get the UserID and Password
•Recreates the ODBC connection string using the UserID and Password
•loops through all the ODBC tables in the front-end application and re-links
the ODBC tables using the new connection string
•Resets the Primary Keys for tables that are views
•looks for PassThrough Queries in the front-end application and changes
their connection string to the new connection string
•checks to see if the password will be expiring in the next 14 days and
notifies the user accordingly
•returns control to the calling front-end application
The Problem:
Once the code in the login tool is called from the front-end application,
the lock file (.laccdb) remains open until the front-end application is
closed.
The Question:
Is there a way to force the Login Tool to close without closing the
front-end application? I tried adding Docmd.closeDatabase to the end of the
login process but that closes both login tool and the calling front-end
application
Is there a better way? Can the login tool be converted to some other format
ie .dll that would be more efficient.
What are the implementations if two or more users hit the Login Tool at
about the same time?
Thanks.
Answers preferred but, I'll accept theories, best guesses and logical
conclusions
other Access applications.
I have an Access 2007 application (the Login Tool). The Login Tool is added
as a reference in several other front-end Access Applications.
(VBA Code Window--Tools--References)
The Login Tool
•Displays a login form to get the UserID and Password
•Recreates the ODBC connection string using the UserID and Password
•loops through all the ODBC tables in the front-end application and re-links
the ODBC tables using the new connection string
•Resets the Primary Keys for tables that are views
•looks for PassThrough Queries in the front-end application and changes
their connection string to the new connection string
•checks to see if the password will be expiring in the next 14 days and
notifies the user accordingly
•returns control to the calling front-end application
The Problem:
Once the code in the login tool is called from the front-end application,
the lock file (.laccdb) remains open until the front-end application is
closed.
The Question:
Is there a way to force the Login Tool to close without closing the
front-end application? I tried adding Docmd.closeDatabase to the end of the
login process but that closes both login tool and the calling front-end
application
Is there a better way? Can the login tool be converted to some other format
ie .dll that would be more efficient.
What are the implementations if two or more users hit the Login Tool at
about the same time?
Thanks.
Answers preferred but, I'll accept theories, best guesses and logical
conclusions