<%
Dim strDatabaseType
'Choose one of the following two lines, and comment out the other
strDatabaseType = "Access"
'strDatabaseType = "MSDE"
'Now we use this selection to specify the connection string'
If strDatabaseType = "Access" Then
strConnect = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=Server.MapPath("new_survey.mdb"
;" & _
"Persist Security Info=False"
Else
' strConnect = "Provider=SQLOLEDB;Persist Security Info=False;" & _
'"User ID=sa;Initial Catalog=Movie;" & _
'"Initial File Name=C:\MSSQL7\Data\Movie2000.mdf"
End If
%>
Currently this code gives me this error
Error Type:
Microsoft VBScript compilation (0x800A0401)
Expected end of statement
/AP/Web_Survey/DataStore.asp, line 11, column 29
can someone please tell me what's wrong coz i've been trying to fix the problem. Thanks a lot for any help rendered.
Dim strDatabaseType
'Choose one of the following two lines, and comment out the other
strDatabaseType = "Access"
'strDatabaseType = "MSDE"
'Now we use this selection to specify the connection string'
If strDatabaseType = "Access" Then
strConnect = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=Server.MapPath("new_survey.mdb"
"Persist Security Info=False"
Else
' strConnect = "Provider=SQLOLEDB;Persist Security Info=False;" & _
'"User ID=sa;Initial Catalog=Movie;" & _
'"Initial File Name=C:\MSSQL7\Data\Movie2000.mdf"
End If
%>
Currently this code gives me this error
Error Type:
Microsoft VBScript compilation (0x800A0401)
Expected end of statement
/AP/Web_Survey/DataStore.asp, line 11, column 29
can someone please tell me what's wrong coz i've been trying to fix the problem. Thanks a lot for any help rendered.