Nått sånthär?
connection.Open "DSN=users"
------------------
It's not that I'm afraid to die. I just don't want to be there when it happens.
Kom hem till mig...
1 svar · 325 visningar · startad av eerik
Har en koppling som ser ut såhär nu:
On Error Resume Next
set connection = Server.CreateObject ("ADODB.Connection")
cnpath="DBQ=" & server.mappath("eerik.mdb")
connection.Open "DRIVER={Microsoft Access Driver (*.mdb)}; " & cnpath
SQLStmt = "Select * from hej where stad = 'true' ORDER BY alder ASC"
Set objConn = Connection.Execute(SQLStmt)
Hur gör jag om jag vill koppla till en dsn users.dsn istället för att göra en koppling som nu direkt till eerik.mdb ?
Nått sånthär?
connection.Open "DSN=users"
------------------
It's not that I'm afraid to die. I just don't want to be there when it happens.
Kom hem till mig...