problem in file dsn

M

Mohan

hello sir,
i created a file dsn named test1 in the path "C:\Program Files\Common
Files\ODBC\Data Sources\test1.dsn".
in my form item_open () event i written the following code
Function Item_Open()

set cnn = application.createobject("adodb.connection")

cnn.open "test1","admin",""

msgbox "success"

End Function



but i got the error like

"[Microsoft][ODBC Driver Manager] Data source name not found and no default
driver specified Line no:3"

but the same thing is working for User DSN and System DSN.what shall i do?

kindly help me with u r guide.

thx

mohan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top