Whell, I have a qry in access from wich I want the results displayed in a table. I've got a working code, but that is for ASP.net, and the server on wich it must run doesn.t support asp.net, And i'm unsuccesfull of converting the code to ASP. The asp.net code is:
<%@ Import Namespace="System.Data.OLEDB" %>
<%@ Page Language="VB" Debug="true" %>
<script language="VB" runat="server">
Sub Page_Load(Src As Object, E As EventArgs)
Dim strConn as string ="PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=" & server.mappath("\Database\Storingsformulier.mdb"

& ";"
Dim strSQL as string ="select * from qry_test"
Dim Conn as New OLEDBConnection(strConn)
Dim Cmd as New OLEDBCommand(strSQL,Conn)
Conn.Open()
myDataGrid.DataSource = Cmd.ExecuteReader(system.data.CommandBehavior.CloseConnection)
myDataGrid.DataBind()
End Sub
</script>
<html>
<head><title>Test</title></head>
<body bgcolor="#FFFFFF">
<font face="Verdana"><h3>Test</h3></font>
<ASP

ataGrid id="MyDataGrid" runat="server"
Width="100%"
BackColor="white"
BorderColor="black"
ShowFooter="false"
CellPadding=3
CellSpacing="0"
Font-Name="Verdana"
Font-Size="8pt"
Headerstyle-BackColor="lightblue"
Headerstyle-Font-Size="10pt"
Headerstyle-Font-Style="bold"
MaintainState="false"
/>
</body>
</html>
how the table looks isn't important, just that the results of the query 'qry_test' are shown in a table.
Roberti