Array
(
)

Erro: ´Imports´ statements must precede any declarations.

Rodrigotnoma
   - 17 mar 2009

Meu código:

Imports System.Data.OleDb

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

Dim Connstring As String
Dim Cn As OleDbConnection
Dim rs As String

Cn = Server.CreateObject(´Connection.ADODB´)
Connstring = (´Provider = Microsoft.Jet.Oledb.4.0;Data Source=C:\inetpub\wwwroot\sistema_natureza\produtos.mdb´)
Cn.Open Connstring

rs = Cn.execute(´Select * from geral´)

End Sub

Qdo tento rodar, ele apresenta esse erro:

´Imports´ statements must precede any declarations.

O que estaria errado?

Obrigado

Rodrigo