I'm connecting to Navision Financinals.
Which is what? Access/SQL Server/Oracle/Sybase.....
I am curious as to why you want to keep the ODBC connection open permanently. Most systems are designed to open and close the connections as rapidly as possible. The monthly charges for some databases are based on the number of active threads. So if you have 10 users with permanent connections you have a minimum of 10 active threads (usually more). Whereas, you might never have more than 5 people concurrently accessing tables so if you closed threads when they were finished, you would never have 10 active threads.
Pat Hartman said:I don't know if this will work but you can try. Create a dummy table in the Navision db and add a record to it. Create a query based on that table. Create a form with that query as its recordsource. Open this form and hide it as part of your start up form. I think as long as this hidden form is open, your connection will stay live. If that doesn't work, you might need to add a timer event that requeries the form every 60 seconds.