Hi all;<BR><BR>I have a (simple?) question for you all.<BR><BR>In one of articles on 4guys (http://aspnet.4guysfromrolla.com/articles/032702-1.aspx) discusses iterating thru results of a query.<BR><BR>The example in the article is as follows:<BR><BR>==Code==<BR><%@ Import Namespace="System.Data" %><BR><%@ Import Namespace="System.Data.OleDb" %><BR><script language="VB" runat="server"><BR> sub Page_Load(sender as Object, e as EventArgs)<BR> Dim connString as String<BR> connString = "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=" & _<BR> "C:InetpubwwwrootProjects.mdb;"<BR> <BR> Dim objConnection as OleDbConnection<BR> objConnection = New OleDbConnection(connString)<BR> objConnection.Open() 'open the connection<BR>==End Code==<BR><BR>If I want to put this into a code behind, I am not able to do so because it appears that I am limited to one Inherits statement. Therefore I can't:<BR><BR>==Code==<BR>Public Class header<BR> Inherits System.Web.UI.UserControl<BR> Inherits System.Data <=== can't add second Inherits<BR> Inherits System.Data.OleDb <=== can't add third Inherits<BR><BR>Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<BR> Dim connString as String<BR> connString = "PROVIDER=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=" & _<BR> "C:InetpubwwwrootProjects.mdb;"<BR>End Sub<BR>==End Code==<BR><BR>Is there a work around to this? Or have I mis-understood something?<BR><BR>Thank you for your time.Try using one extends statement and one inherits statement<BR><BR>shreekIs there an article that talks about that anywhere on the 'Net? I am unfamiliar with the extend statement.<BR><BR>ThanksDon't inherit a referenced class in the codebehind. Instead move your class reference to the code behind. Before your class statement do your imports:<BR><BR>imports system.data.oledb<BR>'then<BR>public class header<BR>bla bla bla