SilverTeath
New Member
I get this error - line 9 is highlighted.... any ideas?<BR><BR>Compiler Error Message: BC30002: Type is not defined: 'OleDbConnection_'<BR><BR>Source Error:<BR><BR> <BR><BR>Line 7: <BR>Line 8: 'set up connection<BR>Line 9: dim myConnection as new OleDbConnection_<BR>Line 10: ("Provider=Microsoft.Jet.OLEDB.4.0;" &_<BR>Line 11: "Data Source=C:CarersCentresOLD.mdb")<BR> <BR>Are you importing the System.Data.OleDb namespace? This line should appear at the top of your document:<BR><BR><%@Import Namespace="System.Data.OleDb")%><BR><BR>hth<BR><BR>If that doesn't do the trick, see if keeping the OleDbConnection constructor all on one line works....