Here is the full code. Will this code help in trying to decipher my issue?
_______________
<%@ Import Namespace="System.Data.OleDb" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="System.Data.SqlClient" %>
<%@ Import Namespace="System.Text"%>
<script runat="server">
sub Page_Load
dim dbconn,sql,dbcomm,dbread
dbconn=New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;data source=" &
server.mappath("/databases/cpcweb.mdb"))
Dim DBSQLCOMMAND As SqlClient.SqlCommand
DBSQLCOMMAND = New SqlClient.SqlCommand
DBSQLCOMMAND.Parameters.Add("@family","Smith")
dbconn.Open()
SQL="SELECT * FROM WebQry_FamilyList where Family='@family'"
dbcomm=New OleDbCommand(sql,dbconn)
dbread=dbcomm.ExecuteReader()
family.DataSource=dbread
family.DataBind()
dbread.Close()
dbconn.Close()
end sub
</script>
<html>
<body>
<form runat="server">
<asp
ataList
id="family"
runat="server"
cellpadding="2"
cellspacing="2"
borderstyle="inset"
backcolor="#e8e8e8"
width="50%"
headerstyle-font-name="Verdana"
headerstyle-font-size="12pt"
headerstyle-horizontalalign="center"
headerstyle-font-bold="True"
itemstyle-backcolor="#778899"
itemstyle-forecolor="#ffffff"
footerstyle-font-size="9pt"
footerstyle-font-italic="True">
<HeaderTemplate>
Family Table
</HeaderTemplate>
<ItemTemplate><%#Container.DataItem("family")%></ItemTemplate>
<FooterTemplate>
Source: The Database
</FooterTemplate>
</asp
ataList>
</form>
</body>
</html>