Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MyODBC VB6 Problem

Status
Not open for further replies.

dpk136

MIS
Jan 15, 2004
335
US
I have made a program that runs off the task scheduler. It connects to a web database using MyODBC. This works most of the time, but once in a while i'll get the MyODBC DSN connection window. I'm not sure why this pops up. should i upgrade the MyODBC from version 2.5 to the newest version? If this is not the case, is there a way to hide this in code or through settings.



David Kuhn
------------------
 
Sounds like a password authentication problem; you must pass your DSn connection authentication in VB as well and not only in the DSN connection window.

assuming you use ADO

Code:
myConn.open "myDSNName", "myUsername", "myPassword"

Cheers

QatQat


Life is what happens when you are making other plans.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top