|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
VBScript - Database - Recordset - Saving new record
Code:
<!--#include file="db.asp" -->
<%
Dim LastName, FirstName, MI
LastName = request.Form("txtLastName")
FirstName = request.Form("txtFirstName")
MI = request.Form("txtMI")
if LastName <> "" then
sql="Insert into tblStudent(LastName, FirstName, MI) Values('"&LastName&"','"&FirstName&"','"&MI&"')"
db.Execute (sql)
end if
%>
I've tried the code above but i encounter the following error: [Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query. /websiteko/student.asp, line 16 pls see the attached file for you to be able to check my asp file. |
|
#2
|
|||
|
|||
|
Try this ..
http://www.codeproject.com/KB/database/accessdb.aspx |
|
#3
|
||||
|
||||
|
This might be a permission issue, have a look at this thread to set permissions
http://forums.aspfree.com/asp-devel...uide-96087.html |
![]() |
| Viewing: ASP Free Forums > Programming > ASP Development > VBScript - Database - Recordset - Saving new record |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|