If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > MYODBC Quirk

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-13-04, 20:02
recarv recarv is offline
Registered User
 
Join Date: Jul 2004
Posts: 2
MYODBC Quirk

Ok,

I'm not sure if this is quite the place, but I wanted to see if anyone has experienced similar problems with myODBC using ADODB connections with VB.

When I give the connection string as simply a DSN name everything works fine, but when I use the IP address, user,pass, etc as options instead so I can change the IP address if needed and redistribute the software easily certain things hang in Excel VBA and I have to end the task.

Has anyone else experienced this?

R
Reply With Quote
  #2 (permalink)  
Old 07-13-04, 20:31
recarv recarv is offline
Registered User
 
Join Date: Jul 2004
Posts: 2
Answer

Ok,

So, I figured out what might be the answer in case this ever gets archived and might save hundreds of people hours of hassle with DSN's

After you close the Connection Object, set it to Nothing:

Set Cnxn = Nothing

Works like a charm, sorry for the bother. Archive this.

R
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On