NewBeginner
Programmer
Firstly i'm a newbie at this kinda thing. So please any help you can give, do so in a step by step process in case i have no idea what you mean!
Ok, here's the problem....
I've been asked by a friend to make a site for their dance troupe, including booking form. I've done what i can so far but now i have a problem. The page is an asp file in VBscript created using dreamweaver mx. I can see the page but when i submit the form i get an error....
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] Could not use '(unknown)'; file already in use.
/haraam/wis.asp, line 113
that section of script is.....
If (CStr(Request("MM_insert"
) <> ""
Then
' create the sql insert statement
MM_tableValues = ""
MM_dbValues = ""
For MM_i = LBound(MM_fields) To UBound(MM_fields) Step 2
MM_formVal = MM_fields(MM_i+1)
MM_typeArray = Split(MM_columns(MM_i+1),","
MM_delim = MM_typeArray(0)
If (MM_delim = "none"
Then MM_delim = ""
MM_altVal = MM_typeArray(1)
If (MM_altVal = "none"
Then MM_altVal = ""
MM_emptyVal = MM_typeArray(2)
If (MM_emptyVal = "none"
Then MM_emptyVal = ""
If (MM_formVal = ""
Then
MM_formVal = MM_emptyVal
Else
If (MM_altVal <> ""
Then
MM_formVal = MM_altVal
ElseIf (MM_delim = "'"
Then ' escape quotes
MM_formVal = "'" & Replace(MM_formVal,"'","''"
& "'"
Else
MM_formVal = MM_delim + MM_formVal + MM_delim
End If
End If
If (MM_i <> LBound(MM_fields)) Then
MM_tableValues = MM_tableValues & ","
MM_dbValues = MM_dbValues & ","
End If
MM_tableValues = MM_tableValues & MM_columns(MM_i)
MM_dbValues = MM_dbValues & MM_formVal
Next
MM_editQuery = "insert into " & MM_editTable & " (" & MM_tableValues & "
values (" & MM_dbValues & "
"
If (Not MM_abortEdit) Then
' execute the insert
Set MM_editCmd = Server.CreateObject("ADODB.Command"
MM_editCmd.ActiveConnection = MM_editConnection
MM_editCmd.CommandText = MM_editQuery
MM_editCmd.Execute
MM_editCmd.ActiveConnection.Close
If (MM_editRedirectUrl <> ""
Then
Response.Redirect(MM_editRedirectUrl)
End If
End If
End If
%>
line 113 is...
MM_editCmd.ActiveConnection = MM_editConnection
As i said i'm a newbie so it's probably something quite easy to solve. But any help you can give will be greatly appreciated.
TIA
Ok, here's the problem....
I've been asked by a friend to make a site for their dance troupe, including booking form. I've done what i can so far but now i have a problem. The page is an asp file in VBscript created using dreamweaver mx. I can see the page but when i submit the form i get an error....
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] Could not use '(unknown)'; file already in use.
/haraam/wis.asp, line 113
that section of script is.....
If (CStr(Request("MM_insert"
' create the sql insert statement
MM_tableValues = ""
MM_dbValues = ""
For MM_i = LBound(MM_fields) To UBound(MM_fields) Step 2
MM_formVal = MM_fields(MM_i+1)
MM_typeArray = Split(MM_columns(MM_i+1),","
MM_delim = MM_typeArray(0)
If (MM_delim = "none"
MM_altVal = MM_typeArray(1)
If (MM_altVal = "none"
MM_emptyVal = MM_typeArray(2)
If (MM_emptyVal = "none"
If (MM_formVal = ""
MM_formVal = MM_emptyVal
Else
If (MM_altVal <> ""
MM_formVal = MM_altVal
ElseIf (MM_delim = "'"
MM_formVal = "'" & Replace(MM_formVal,"'","''"
Else
MM_formVal = MM_delim + MM_formVal + MM_delim
End If
End If
If (MM_i <> LBound(MM_fields)) Then
MM_tableValues = MM_tableValues & ","
MM_dbValues = MM_dbValues & ","
End If
MM_tableValues = MM_tableValues & MM_columns(MM_i)
MM_dbValues = MM_dbValues & MM_formVal
Next
MM_editQuery = "insert into " & MM_editTable & " (" & MM_tableValues & "
If (Not MM_abortEdit) Then
' execute the insert
Set MM_editCmd = Server.CreateObject("ADODB.Command"
MM_editCmd.ActiveConnection = MM_editConnection
MM_editCmd.CommandText = MM_editQuery
MM_editCmd.Execute
MM_editCmd.ActiveConnection.Close
If (MM_editRedirectUrl <> ""
Response.Redirect(MM_editRedirectUrl)
End If
End If
End If
%>
line 113 is...
MM_editCmd.ActiveConnection = MM_editConnection
As i said i'm a newbie so it's probably something quite easy to solve. But any help you can give will be greatly appreciated.
TIA