hi could do with some help!
Can anyone see the problem with this code? I'm trying to connect to db etc. I've had it working b4 but now keep getting an error about commantext?
my code
'Open the connection to the the Access database
Set objConn = Server.CreateObject("ADODB.Connection")
MdbFilePath = Server.MapPath("cddb.mdb")
objConn.Open "Driver={Microsoft Access Driver (*.mdb)}; DBQ=" & MdbFilePath & ";"
'create and setup the Command object.
Set objCmd = Server.CreateObject("ADODB.Command")
Set objCmd.ActiveConnection = objConn
Set objRS = Server.CreateObject("ADODB.Recordset")
objRS.CursorLocation = adUseClient
objRS.CursorType = adOpenStatic
objRS.CacheSize = intPageSize
Cheers dudes.
Can anyone see the problem with this code? I'm trying to connect to db etc. I've had it working b4 but now keep getting an error about commantext?
my code
'Open the connection to the the Access database
Set objConn = Server.CreateObject("ADODB.Connection")
MdbFilePath = Server.MapPath("cddb.mdb")
objConn.Open "Driver={Microsoft Access Driver (*.mdb)}; DBQ=" & MdbFilePath & ";"
'create and setup the Command object.
Set objCmd = Server.CreateObject("ADODB.Command")
Set objCmd.ActiveConnection = objConn
Set objRS = Server.CreateObject("ADODB.Recordset")
objRS.CursorLocation = adUseClient
objRS.CursorType = adOpenStatic
objRS.CacheSize = intPageSize
Cheers dudes.