Hi,
I use the DoCmd.Openquery code to run a query via a form/button. The query retrieves data from tables linked through ODBC. To access the data you need to answer a login/password. I would like to take the network user (NT), check whether he is entitled to access the data, if so, open the database connetion, run the query and then close the connection.
What code is required to get the NT user and open the connection to the table?
thnxs in advance,
Emile
I use the DoCmd.Openquery code to run a query via a form/button. The query retrieves data from tables linked through ODBC. To access the data you need to answer a login/password. I would like to take the network user (NT), check whether he is entitled to access the data, if so, open the database connetion, run the query and then close the connection.
What code is required to get the NT user and open the connection to the table?
thnxs in advance,
Emile