I'm at the end of my tether here. This is driving me nuts. I have a database that I need to connect to and I'm using the code below to do it, but for some reason it ain't working. The exact same code (split up into chunks and wrapped around some html and other stuff) works perfectly in another page, but it simply refuses to work here. Any clues? Currently it's only supposed to look at the first record, but it will eventually be modified to look at any record. It's so simple I can't see what I've done wrong. Anyway, here it is:
Code:
Dim dbc
Dim strConn
Dim rs
Dim strpath
strConn = "Driver={Microsoft Access Driver (*.mdb)};DBQ="& server.mappath("database/indespension.mdb")
Set dbc = Server.CreateObject("ADODB.Connection")
dbc.open strConn
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open "parts", dbc
rs.movefirst
aParameters = Array(rs("partno"), "test", "test")
rs.Close
dbc.Close