adamsoderqvist
Programmer
I have this connection string:
"Dim objConn, sConnection
Set objConn = Server.CreateObject("ADODB.Connection"
sConnection = "Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=" & Server.MapPath("../db/Members.mdb"
& "; Persist Security Info=False"
objConn.Open(sConnection)"
Now, when I try to get info using this statement:
"objRS("FirstName"
" - it wont return anything,
...thogh when I use this:
"Set objConn = Server.CreateObject("ADODB.Connection"
objConn.ConnectionString = "DRIVER={Microsoft Access Driver (*.mdb)}; & "DBQ=" & Server.MapPath("../db/Members.mdb"
"
...it works fine.
the reason why I have to have the first connection string is complex, and it's in an include file, which means that all connections are the same...
There is no problem when I add/updates or removes stuff from the DB with the first string...! - Just when I want to collect data!
hlp, pls!
"Dim objConn, sConnection
Set objConn = Server.CreateObject("ADODB.Connection"
sConnection = "Provider=Microsoft.Jet.OLEDB.4.0;" & "Data Source=" & Server.MapPath("../db/Members.mdb"
objConn.Open(sConnection)"
Now, when I try to get info using this statement:
"objRS("FirstName"
...thogh when I use this:
"Set objConn = Server.CreateObject("ADODB.Connection"
objConn.ConnectionString = "DRIVER={Microsoft Access Driver (*.mdb)}; & "DBQ=" & Server.MapPath("../db/Members.mdb"
...it works fine.
the reason why I have to have the first connection string is complex, and it's in an include file, which means that all connections are the same...
There is no problem when I add/updates or removes stuff from the DB with the first string...! - Just when I want to collect data!
hlp, pls!