Hello,
I'm trying to use DLookup() in my VBA code to access an ODBC table. When I run the code, it pauses and manually asks me for a user name and password. Is there any way to automate this?
Not done in VBA, but at point of initially attaching table to your database,
File, Get External Data, Link Table, then selct table from source and list. In the dialogue box containing list of tables, check the small box in the bottom right hand corner to save the password for the link.
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.