Hello
I have the following script in an asp file. The script appears at the top of a page which ought to display data in a MS Access database.
It does, in fact, show the data but in the bottom left hand corner of the browser I get an 'error on page' message.
Why is it that the following will not tell me what the error is? (My IE6 is set not to display friendly HTTP messages).
Many thanks
Steve
<html>
<head>
<%
Function Insert()
Dim commandText
Dim DB
Set DB = Server.CreateObject("ADODB.Connection")
DB.Open "driver={Microsoft Access Driver (*.mdb)};DBQ=D:\business\Form1.mdb;"
commandText = "INSERT INTO Enquiries (FullName, Sex, Country, Hobbies, DateofBirth) VALUES ('Penelope Rambottom', 'Female', 'New Zealand', 'Riding', '1977-10-13')"
DB.Execute commandText
If Err.Number <> 0 Then
Response.Write("Error (" & Err.Number & "): " & Err.Description)
DB.Close
End If
DB.close
End Function
%>
I have the following script in an asp file. The script appears at the top of a page which ought to display data in a MS Access database.
It does, in fact, show the data but in the bottom left hand corner of the browser I get an 'error on page' message.
Why is it that the following will not tell me what the error is? (My IE6 is set not to display friendly HTTP messages).
Many thanks
Steve
<html>
<head>
<%
Function Insert()
Dim commandText
Dim DB
Set DB = Server.CreateObject("ADODB.Connection")
DB.Open "driver={Microsoft Access Driver (*.mdb)};DBQ=D:\business\Form1.mdb;"
commandText = "INSERT INTO Enquiries (FullName, Sex, Country, Hobbies, DateofBirth) VALUES ('Penelope Rambottom', 'Female', 'New Zealand', 'Riding', '1977-10-13')"
DB.Execute commandText
If Err.Number <> 0 Then
Response.Write("Error (" & Err.Number & "): " & Err.Description)
DB.Close
End If
DB.close
End Function
%>