Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Object required : server

Status
Not open for further replies.

kgaustria

Programmer
May 23, 2001
5
PK
guys can you please help me on this ? im creating a program (client based) and as i view the page it gives me an error "Object Required:server". What does this mean ? Here's a part of the page im working on...

<html>
<head>
<title>PC Inventory System</title>
<script language=&quot;VBScript&quot; RUNAT=&quot;server&quot;>
<!--
sub cmdbrowse_onclick
dim Conn, RS, strConn, sqlStatement
Set Conn = server.createobject(&quot;ADODB.Connection&quot;)

strConn = &quot;PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=&quot;
strConn = strConn & server.mappath(&quot;..\ken\pcinvsys\sample.mdb&quot;) & &quot;;&quot;
Conn.Open
Set RS = createobject(&quot;ADODB.Recordset&quot;)
RS.activeconnection=Conn
rs.Cursortype=2 'adOpenDynamic
sqlStatement = &quot;Select * from PCINV Where Users=&quot;&quot;E. LOPEZ&quot;&quot;&quot;
RS.open sqlStatement
end sub
-->
</script>
</head>
<body>
<!--<OBJECT ID=&quot;DBGrid Control&quot; WIDTH=&quot;100%&quot; HEIGHT=&quot;100%&quot; align=&quot;middle&quot; NAME=&quot;grid&quot; CLASSID=&quot;CLSID:00028C00-0000-0000-0000-000000000046&quot;>
</OBJECT> -->
<HR>
<!--<form method=&quot;POST&quot; action=&quot;view.asp&quot;>
<p><input type=&quot;submit&quot; value=&quot;View&quot; name=&quot;View&quot;></p>
</form> -->
<form>
<center>
<!--<input name=&quot;cmdbrowse&quot; type=&quot;Image&quot; title=&quot;View the contents&quot; src=&quot;./img/icons/table.ico&quot; width=&quot;40&quot; height=&quot;40&quot;> -->
<input name=&quot;cmdbrowse&quot; type=&quot;Button&quot; title=&quot;View the contents&quot; Value=&quot;BROWSE&quot; width=&quot;40&quot; height=&quot;40&quot;>

&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
<input name=&quot;cmdadd&quot; type=&quot;Image&quot; title=&quot;Add to the table &quot; src=&quot;./img/icons/folder04.ico&quot; width=&quot;40&quot; height=&quot;40&quot;>
&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
<input name=&quot;cmdedit&quot; type=&quot;image&quot; title=&quot;Edit the selected record&quot; src=&quot;./img/icons/pencil01.ico&quot; width=&quot;40&quot; height=&quot;40&quot;>
&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
<input name=&quot;cmddelete&quot; type=&quot;Image&quot; title=&quot;Delete the record(s)&quot; src=&quot;./img/icons/delete.bmp&quot; width=&quot;40&quot; height=&quot;40&quot;>
&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
<input name=&quot;cmdupdate&quot; type=&quot;Image&quot; title=&quot;Updates the table&quot; src=&quot;./img/icons/save.bmp&quot; width=&quot;40&quot; height=&quot;40&quot;>
</center>
</form>
</body>
</html>


 
Hi,

Remove &quot;server&quot; from &quot;server.create&quot;. I believe this is reserved for an ASP page.

Fenshui_1998
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top