andfernandes Posted June 14, 2006 at 02:36 PM Report Share #32927 Posted June 14, 2006 at 02:36 PM 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) db.Open(conex) End Sub Public Sub CloseDatabase() db.Close() End Sub Link to comment Share on other sites More sharing options...
seesharptec Posted June 14, 2006 at 03:27 PM Report Share #32931 Posted June 14, 2006 at 03:27 PM Falta a cabeça um Import Imports System.Data.SqlClient SeeSharpTec Link to comment Share on other sites More sharing options...
Asgorath Posted June 16, 2006 at 09:10 AM Report Share #33231 Posted June 16, 2006 at 09:10 AM Usa o System.Data.OleDb namespace em vez de ADODB. Jorge "The Dark Side Clouds Everthing. Impossible To See The Future Is."My rig: Intel Core 2 Quad Q9450 | abit IP35P | 4G Kingston 800 Mhz | XFX GeForce 9800 GX2 1G ddr3 | 2X WD5000AAJS 500Gb Sata 2 | PSU 600W || Caixa El-Diablo | Creative XMod Link to comment Share on other sites More sharing options...
TrymBeast Posted June 27, 2006 at 09:35 PM Report Share #35133 Posted June 27, 2006 at 09:35 PM Ou então o ODBC Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now