Results 1 to 2 of 2

Thread: ADO connectionstring

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 1999
    Location
    Ohio
    Posts
    59

    Post

    Does anyone know how I can get around having to set the ConnectionString at design time for an ADO control?
    My application can use different Access databases and I prompt the user to select the correct database.
    In the load section of the form I programmatically set the connection string. However, ADO tries to establish the connection to whatever is in the connection string at design time before the Load code is executed.

  2. #2
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    I've gotten around that by deleting the connection string property of the ADO data control at design time. In the form_load event, I set the connection string and all is good

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width