June 23rd, 2006, 11:15 am
Hi, You need to pass a connection string to Open method of the ADODB Connection object(in your case, conn)how to get a connection string is very easy.Plz. refer to UDL Tutorialor Making Connection...In short 1.create a blank text file(eg., create sybase.txt using NOTEPAD.exe)2.Rename extension of file(eg., sybase.udl )3.doule-click and open it4.you will see a dialog box , "Data Link Properties"5.In [Provider] tab, specify sybase~provider~ if you can't see that, install database driver. 6.In [Connection] tab, input Data source,Location,ID,Password, etc7.Click [Test Connection] 8.If you succeed, Open the udl file using the NOTEPAD.exe9.You'll see a connection string.10.copy the string and paste on your source codeHTH,sjoo