Add New Record in Access DB
Can anyone tell me how to remove the marked error on this page.
On running this page the error occurs that arguments dont match on the marked line.
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Welcome User</title>
</head>
<body>
<h1>Welcome!</h1>
<p>Thank You for logging on at<%=time%>, <% =date%>
<p><h1>Add new record</h1>
<strong>
<%
dim objCon, objRS, intEmpID
set objCon=server.CreateObject("ADODB.Connection")
set objRS=server.CreateObject("ADODB.Recordset")
objCon.Open "DSN=test"
objRS.Open "Employees", objCon, adOpenStatic,adLockBatchOptimistic, adCmdTable
objRS.MoveLast
response.Write(objRS("EmployeesID"))
response.Write(objRS("FirstName"))
response.Write(objRS("MiddleName"))
response.write(objRS("EAddress"))
%>
</strong>
</body>
</html>
|