My Access database has a linked table to the datasource. The additional datasource has it's own ODBC connection. The datasource name is Velocity. It was developed by a company called AFS. It's very similar to an access database. I think I have found the connection string to use if I was going to use MS query to query against it. This may be of help once I figure things out but for now not sure how it will come into play. My query is in Access and it is an append query. This query retreives information from the linked table and apends to a local table in my database. However, the first time this query is executed, it establishes the connection to the datasource and requires a user id an password. Right now, I'm simply using DAO code that opens the database and peforms dba.execute against the query. A dialog box then appears asking for the user id/pwd. (SQL Servier Login).The datasource is responsible for this not my code.
My boss wanted me to investigate SendKeys and use that but after all the research I did on that, I told him no. It is just too tricky and not a reliable way to go. I would rather spend my time researching another way that would be more dependable and which I could learn something of value that could be used in future projects. I've been programming using access/excel for about three years now but the past couple of months I have only begun to work with linked tables to another ODBC datasource. I'm learning on the fly here and having to teach myself.
I am familiar with code to open Access and provide the id/password when required. But not at the query level. Maybe I should try to figure out a way to open the datasource after access is opened to establish the connection and is there a way to do this using code to connect and provide the id/pwd similar to that of the open code for Access?.....
