jemckinney
MIS
Please help. I'm attaching to my sql database via a dsn but everytime I try to run the page, it tells me that it expects a ; after Sub Page_Load??? It is only a few lines of code and shouldn't need a ; . I'm so confused and I am new to this. I have included the code so you could see if I am missing something. Thanks so much in advance!
<%@ Import Namespace="System.Data.OleDb" %>
<Script runat="Server">
Sub Page_Load
Dim conDB As sqlcon
conDB = New sqlcon
( "Provider=Microsoft.Jet.OLEDB.4.0;Data Soure="MYDSN" )
conDB.Open()
End Sub
</script>
<%@ Import Namespace="System.Data.OleDb" %>
<Script runat="Server">
Sub Page_Load
Dim conDB As sqlcon
conDB = New sqlcon
( "Provider=Microsoft.Jet.OLEDB.4.0;Data Soure="MYDSN" )
conDB.Open()
End Sub
</script>