VB Databases Basics Beginning-level VB coding questions specific to using VB with databases. Issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums . You are currently viewing the VB Databases Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
June 13th, 2003, 06:24 AM
Registered User
Join Date: Jun 2003
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
about supplyer not installed prob
hi there i'm trying to insert some data to an existing access database.
the problem is every time i execute a command, it gives me an error: the supplyer not found . Could not be installed run-time error nr 3706
here is the code i've so far for this method:
Private Sub Comando24_Click()
Dim rs As Recordset
Dim cnn As Connection
Dim strSQL, pn, un, dtv, nocc, bcc, eml, pw As String
Dim NumCl, tlf, ncc As Integer
Dim bl As Boolean
Set cnn = New Connection
Set rs = New Recordset
cnn.Open "Provider=Microsoft.Jet.OLEDB.3.6;Data Source=D:\Documents and Settings\bruno\My Documents\Copy of soinformatica_final.mdb;"
rs.Open "Cliente", cnn
pn = Trim(Me.Pr_Nome)
un = Trim(Me.Ul_Nome)
tlf = Trim(Me.Telefone)
eml = Trim(Me.Email)
ncc = Trim(Me.Num_cc)
nocc = Trim(Me.Nome_cc)
bcc = Trim(Me.Banco_cc)
dtv = Trim(Me.Data_Val_cc)
pw = Trim(Me.Password)
'strSQL = "INSERT INTO Cliente Pr_Nome, Ul_Nome, Telefone, Email, Num_cc, Nome_cc, Banco_cc, Data_Val_cc, Password VALUES pn, un, tlf, eml, ncc, nocc, bcc, dtv, pw"
'If (pn <> "") And (un <> "") And (pw <> "") Then
'MsgBox (pn & " : primeiro nome; " & un & ": ultimo nome")
'("INSERT INTO Cliente Pr_Nome, Ul_Nome, Telefone, Email, Num_cc, Nome_cc, Banco_cc, Data_Val_cc, Password VALUES pr_nome1, ul_nome1, telefone1, email1, num_cc, nome_cc1, banco_cc1, data_val_cc1, password1")
bl = rs.Supports(adAddNew)
MsgBox (bl)
'DoCmd.RunSQL strSQL
'rs.AddNew
'rs!Pr_Nome = pn
'rs!Ul_Nome = un
'rs!Password = pw
'rs.Update
'End If
'para remover cliente:
'NumCl = InputBox("Qual o numero de cliente a ser eliminado?")
'cnn.Execute "DELETE FROM Cliente WHERE Id_Cliente = " & strNumClEl
' Do While Not rs.EOF
' If Val(rs.AbsolutePosition) = NumCl Then
' rs.Delete
' Exit Do
' Else: rs.MoveNext
' End If
' Loop
' strID = Trim(InputBox("Enter employee ID:"))
' strFirstName = Trim(InputBox("Enter first name:"))
' strLastName = Trim(InputBox("Enter last name:"))
' rs.Close
'cnn.Close
End Sub
--------------------------
hoping to get some feedback, i thank you in advance.
eureko
June 13th, 2003, 09:16 AM
Friend of Wrox
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
Posts: 2,190
Thanks: 5
Thanked 59 Times in 57 Posts
hi there...
Fisrt of all.. please always apoint the line that gives you the error..
any way.. i think that your problem is in Microsoft.Jet.OLEDB.3.6..
should it be maybe 3.5?? or 4.0??
HTH...
Gonzalo Bianchi
June 13th, 2003, 11:01 AM
Registered User
Join Date: Jun 2003
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
exactly ! that's were the error is...
but how should i solve that?
Quote:
quote:Originally posted by gbianchi
hi there...
Fisrt of all.. please always apoint the line that gives you the error..
any way.. i think that your problem is in Microsoft.Jet.OLEDB.3.6..
should it be maybe 3.5?? or 4.0??
HTH...
Gonzalo Bianchi
June 13th, 2003, 11:30 AM
Friend of Wrox
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
Posts: 2,190
Thanks: 5
Thanked 59 Times in 57 Posts
what database are you trying to connect???
Gonzalo Bianchi
June 13th, 2003, 11:32 AM
Registered User
Join Date: Jun 2003
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
an access2000 db
June 13th, 2003, 11:37 AM
Friend of Wrox
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
Posts: 2,190
Thanks: 5
Thanked 59 Times in 57 Posts
ok.. try with this Microsoft.Jet.OLEDB.4.0 in the provider line...
Gonzalo Bianchi
June 13th, 2003, 11:50 AM
Registered User
Join Date: Jun 2003
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
no same thing hapens! :(
June 13th, 2003, 12:00 PM
Friend of Wrox
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
Posts: 2,190
Thanks: 5
Thanked 59 Times in 57 Posts
is this the dev. machine or the user machine??
maybe you will have to install jet 4.0 again???
Gonzalo Bianchi
June 13th, 2003, 12:16 PM
Registered User
Join Date: Jun 2003
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
its the developer machine..
How do i install the jet?? installing access will do?
June 13th, 2003, 12:38 PM
Friend of Wrox
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
Posts: 2,190
Thanks: 5
Thanked 59 Times in 57 Posts
get the jet pack from microsoft.. that will be better...
Gonzalo Bianchi
Thread Tools
Display Modes
Linear Mode
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off