Can anyone give some details on how to add data to the grid control ? Here's the module im working on ....
<html>
<head>
<title>PC Inventory System</title>
<script language="VBScript" RUNAT="server">
<!--
sub cmdbrowse_onclick
dim Conn, RS, strConn, sqlStatement
Set Conn = createobject("ADODB.Connection"
'strConn = "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=.\pcinvsys\sample.mdb;"
'strConn = strConn & server.mappath("..\ken\pcinvsys\sample.mdb" & ";"
Conn.Open "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=.\sample.mdb;"
Set RS = createobject("ADODB.Recordset"
RS.activeconnection=Conn
rs.Cursortype=2 'adOpenDynamic
sqlStatement = "Select * from PCINV Where Users=""E. LOPEZ"""
RS.open sqlStatement
end sub
-->
</script>
</head>
<body>
<OBJECT ID="DBGrid Control" WIDTH="100%" HEIGHT="100%" align="middle" NAME="grid" CLASSID="CLSID:00028C00-0000-0000-0000-000000000046">
</OBJECT>
<HR>
<form>
<center>
<input name="cmdbrowse" type="Button" title="View the contents" Value="BROWSE" width="40" height="40">
            
<input name="cmdadd" type="Button" title="Add to the table " value="ADD" width="40" height="40">
            
<input name="cmdedit" type="Button" title="Edit the selected record" value="EDIT" width="40" height="40">
            
<input name="cmddelete" type="Button" title="Delete the record(s)" value="DELETE" width="40" height="40">
            
<input name="cmdupdate" type="Button" title="Updates the table" value="UPDATE" width="40" height="40">
</center>
</form>
</body>
</html>
Thanks in advance....
<html>
<head>
<title>PC Inventory System</title>
<script language="VBScript" RUNAT="server">
<!--
sub cmdbrowse_onclick
dim Conn, RS, strConn, sqlStatement
Set Conn = createobject("ADODB.Connection"
'strConn = "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=.\pcinvsys\sample.mdb;"
'strConn = strConn & server.mappath("..\ken\pcinvsys\sample.mdb" & ";"
Conn.Open "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=.\sample.mdb;"
Set RS = createobject("ADODB.Recordset"
RS.activeconnection=Conn
rs.Cursortype=2 'adOpenDynamic
sqlStatement = "Select * from PCINV Where Users=""E. LOPEZ"""
RS.open sqlStatement
end sub
-->
</script>
</head>
<body>
<OBJECT ID="DBGrid Control" WIDTH="100%" HEIGHT="100%" align="middle" NAME="grid" CLASSID="CLSID:00028C00-0000-0000-0000-000000000046">
</OBJECT>
<HR>
<form>
<center>
<input name="cmdbrowse" type="Button" title="View the contents" Value="BROWSE" width="40" height="40">
            
<input name="cmdadd" type="Button" title="Add to the table " value="ADD" width="40" height="40">
            
<input name="cmdedit" type="Button" title="Edit the selected record" value="EDIT" width="40" height="40">
            
<input name="cmddelete" type="Button" title="Delete the record(s)" value="DELETE" width="40" height="40">
            
<input name="cmdupdate" type="Button" title="Updates the table" value="UPDATE" width="40" height="40">
</center>
</form>
</body>
</html>
Thanks in advance....