OK. Now I'm stumped.
No matter how I set it up, it fails.
Here is what I've got:
<%
' ================================
' = CONSTANTS
' ================================
'Const adOpenForwardOnly = 0
'Const adOpenDynamic = 2
'Const adLockReadOnly = 1
'Const adLockPessimistic = 2
Const adOpenKeyset = 1
Const adLockOptimistic = 3
' =================================
' = FORM DATA RETRIEVAL
' =================================
set fmLocation = Request.Form("fmLocation"
set fmState = Request.Form("fmState"
' =================================
' = DATABASE CONNECTION
' =================================
connString = "DBQ=" & Server.MapPath("PTJobs.mdb" & ";Driver={Microsoft Access Driver (*.mdb)}"
set conn = server.createobject("ADODB.Connection"
conn.open connString
' =================================
' = SQL QUERIES
' =================================
locSQL = "INSERT INTO PTJobs ('location','state') values ('Brian','IL')"
set rs = server.createobject("ADODB.Recordset"
' Also tried rs = conn.execute(sql)
' =================================
' = INITIAL RECORDSET CONFIGURATIONS
' =================================
rs.Open locSQL, conn, 3, 3
'Also tried "PTJobs(also locSQL)","", adOpenKeyset, adLockOptimistic
' ================================
' = ACTION WITH EXTRACTED DATA
' ================================
Response.Write locSQL & "<p>"
' ===============================
' = DATABASE CLEANUP
' ===============================
rs.close
set rs = nothing
conn.close
set conn = nothing
%>
Always returns: HTTP 500 - Internal server error
Any suggestions are greatly appreciated..
Bri
No matter how I set it up, it fails.
Here is what I've got:
<%
' ================================
' = CONSTANTS
' ================================
'Const adOpenForwardOnly = 0
'Const adOpenDynamic = 2
'Const adLockReadOnly = 1
'Const adLockPessimistic = 2
Const adOpenKeyset = 1
Const adLockOptimistic = 3
' =================================
' = FORM DATA RETRIEVAL
' =================================
set fmLocation = Request.Form("fmLocation"
set fmState = Request.Form("fmState"
' =================================
' = DATABASE CONNECTION
' =================================
connString = "DBQ=" & Server.MapPath("PTJobs.mdb" & ";Driver={Microsoft Access Driver (*.mdb)}"
set conn = server.createobject("ADODB.Connection"
conn.open connString
' =================================
' = SQL QUERIES
' =================================
locSQL = "INSERT INTO PTJobs ('location','state') values ('Brian','IL')"
set rs = server.createobject("ADODB.Recordset"
' Also tried rs = conn.execute(sql)
' =================================
' = INITIAL RECORDSET CONFIGURATIONS
' =================================
rs.Open locSQL, conn, 3, 3
'Also tried "PTJobs(also locSQL)","", adOpenKeyset, adLockOptimistic
' ================================
' = ACTION WITH EXTRACTED DATA
' ================================
Response.Write locSQL & "<p>"
' ===============================
' = DATABASE CLEANUP
' ===============================
rs.close
set rs = nothing
conn.close
set conn = nothing
%>
Always returns: HTTP 500 - Internal server error
Any suggestions are greatly appreciated..
Bri