Bien he dejado asi el código. Y claramente esta mal. Deberia hacer 2 if?
Dejo el nuevo código:
Cita: <%@ LANGUAGE=JScript %>
<meta name="GENERATOR" content="Arachnophilia 4.0">
<meta name="FORMATTER" content="Arachnophilia 4.0">
</head>
<body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#800080" alink="#ff0000">
<%
conexion=Server.CreateObject("adodb.connection")
registro1=Server.CreateObject("adodb.recordset")
conexion.Open ("DRIVER={Microsoft Access Driver (*.mdb)}; DBQ="+Server.MapPath("PDCP.mdb")+";")
registro1.Open (x, conexion, 3, 0x0002)
if(registro1.EOF)
{
x = "INSERT INTO 902_DATOS_GENERALES (Empresa) VALUES ("&parseInt(Request.form("empresa"))&")"
conexion.Execute (x)
registro1.Addnew ()
registro1("Direccion") = Request.form ("direccion")
registro1.Update()
Response.Write("Datos incorrectos")
}
%>
'x' no está definido