JustinW
02-15-2005, 08:16 PM
Hey! I have a client that requires I connect using his Access 2000 Database in a server environment that will not allow me to set it up in his system ODBC which leaves me with the manual connection in asp. I am not unfamiliar with this but I am having some issues this time around. I found a similar problem in this forum but it did not help at all. :confused:
Dim adoCon
Dim rsProducts
Dim strSQL
strSQL = "SELECT * FROM Products ORDER BY ProdName;"
Set adoCon = Server.CreateObject("ADODB.Connection")
adoCon.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("database.mdb")
adoCon.Open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("database.mdb")
rsProducts.Open strSQL, adoCon
I tried the two adoCon.Open strings seperate mind you. Both gave me the same error which is:
Error Type:
Microsoft VBScript runtime (0x800A01A8)
Object required: ''
/whitaker/prodlist.asp, line 10
Thanks!
-Just :cool:
Dim adoCon
Dim rsProducts
Dim strSQL
strSQL = "SELECT * FROM Products ORDER BY ProdName;"
Set adoCon = Server.CreateObject("ADODB.Connection")
adoCon.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("database.mdb")
adoCon.Open "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("database.mdb")
rsProducts.Open strSQL, adoCon
I tried the two adoCon.Open strings seperate mind you. Both gave me the same error which is:
Error Type:
Microsoft VBScript runtime (0x800A01A8)
Object required: ''
/whitaker/prodlist.asp, line 10
Thanks!
-Just :cool: