Jump to content

Dificuldade em fazer a ligaçao a base de dados em vb.net


Recommended Posts

Boa tarde. o meu problema é k kuando defino a ligaçao atraves de um modulo dá-me um erro no ADODB(erro está a vermelho).conseguem tirar-me esta duvida? Terei de invocar alguma coisa.kuando tento aceder atraves do ctrl+espace nao me aparece o ADODB nos metodos digamos.obrigado

    Public db As New ADODB.Connection

    Public rs As New ADODB.Recordset

    Public Sub OpenDatabase()

        Dim conex As String

        conex = "Provider=" & Chr(34) & "Microsoft.Jet.OLEDB.4.0" & Chr(34) & ";Data Source=" & Chr(34)

        conex = conex & "C:\Documents and Settings\André\Ambiente de Trabalho\Politica\Politica\votos.mdb" & Chr(34)


    End Sub

    Public Sub CloseDatabase()


    End Sub

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.