I have a simple script that I have used more times than I can count to connect to a database. I now need a recordset that is dynamic instead of forward only. I have tried many different syntaxes to no avail. Does anyone have an idea of how to configure this code to be a dynamic set?
Set xConn = Server.CreateObject("ADODB.Connection")
DSNtemp="DRIVER={Microsoft Access Driver (*.mdb)}; "
DSNtemp=dsntemp & "DBQ=" & server.mappath("db.mdb")
xConn.Open DSNtemp
Set xConn = Server.CreateObject("ADODB.Connection")
DSNtemp="DRIVER={Microsoft Access Driver (*.mdb)}; "
DSNtemp=dsntemp & "DBQ=" & server.mappath("db.mdb")
xConn.Open DSNtemp