Hi
i am trying to create a dsn less connection so i don;t have to go round to each pc to set up an odbc conn.
i have found this...
but can't figure out what object type oConn should be. I've tried dao.connection, doesn't work. can anyone tell what the type of oConn should be or how i should be using the above.
Thanks.
i am trying to create a dsn less connection so i don;t have to go round to each pc to set up an odbc conn.
i have found this...
Code:
oConn.Open "Driver={SQL Server};" & _
"Server=myServer;" & _
"Database=myDB;" & _
"Uid=myUser;" & _
"Pwd=myPass"
but can't figure out what object type oConn should be. I've tried dao.connection, doesn't work. can anyone tell what the type of oConn should be or how i should be using the above.
Thanks.