Hello
I am getting into an irritable mess (!) connecting to a simple MSAccess database with a few photos in it.
The error message I am getting is:
Microsoft VBScript compilation error '800a0401'
Expected end of statement
/samples/dbconn.asp, line 6
DbCon = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ="D:\business\graphic.com\private\gallery.mdb;"
-------------------------------------------------------^
The code I was hoping to use is:
<%
Dim DbCon
Dim objRec
Dim objCon
DbCon = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ="D:\business\graphic.com\private\gallery.mdb;"
DefaultDir="& Server.MapPath(".") &";DriverId=25;FIL=MS Access;MaxBufferSize=512;PageTimeout=5"
%>
When I have asked my server host, they just ask me to ensure I have the MDB in a folder called 'Private', which I have!
Many thanks
EvertonFC
I am getting into an irritable mess (!) connecting to a simple MSAccess database with a few photos in it.
The error message I am getting is:
Microsoft VBScript compilation error '800a0401'
Expected end of statement
/samples/dbconn.asp, line 6
DbCon = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ="D:\business\graphic.com\private\gallery.mdb;"
-------------------------------------------------------^
The code I was hoping to use is:
<%
Dim DbCon
Dim objRec
Dim objCon
DbCon = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ="D:\business\graphic.com\private\gallery.mdb;"
DefaultDir="& Server.MapPath(".") &";DriverId=25;FIL=MS Access;MaxBufferSize=512;PageTimeout=5"
%>
When I have asked my server host, they just ask me to ensure I have the MDB in a folder called 'Private', which I have!
Many thanks
EvertonFC