Hi Davesexcel,
Thanks for your reply, But I don't want the user to enter any password. My macro should try to capture his windows xp user id with the below code and then check whether the same XP ID exists in the SQL data base table and if it exists in the sql database table column then it should allow user to run the other macro otherwise it should show a message to user that you are not authorized to run this macro. Below mentioned code works fine with Excel. I only want to change it to some extent so that it works fine with SQL table.
Macro 1 : to check the windows xp userid of a user :
Macro 2 : to check whether a particular xp userid exists in a excel file (Now I want to change the below code so that it works with sql table) :
Macro 3 : to check whether a user id exists and in sql table and immediately run the other macro (This macro is to avoid writing above Test macro again and again which is quite big)
Bookmarks