I am using the docmd.transferdatabase to import data from a database via and ODBC connection in VBA code. This database has numerous different companies within it. It works fine the first time I run the code. But if you run it again and select a different company from the database it still brings in the first companies data. It is like it is still logged in with the first runs login info. Is there away to force the ODBC connection to close after you have transferred the data. This may be simple but I have yet to find any reference to this anywhere. Thanks in advance for any suggestions.