Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB Databases Basics
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 13th, 2003, 06:24 AM
Registered User
 
Join Date: Jun 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
 
Old June 13th, 2003, 09:16 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

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
 
Old June 13th, 2003, 11:01 AM
Registered User
 
Join Date: Jun 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
 
Old June 13th, 2003, 11:30 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

what database are you trying to connect???

Gonzalo Bianchi
 
Old June 13th, 2003, 11:32 AM
Registered User
 
Join Date: Jun 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

an access2000 db
 
Old June 13th, 2003, 11:37 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

ok.. try with this Microsoft.Jet.OLEDB.4.0 in the provider line...

Gonzalo Bianchi
 
Old June 13th, 2003, 11:50 AM
Registered User
 
Join Date: Jun 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

no same thing hapens! :(
 
Old June 13th, 2003, 12:00 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

is this the dev. machine or the user machine??

maybe you will have to install jet 4.0 again???


Gonzalo Bianchi
 
Old June 13th, 2003, 12:16 PM
Registered User
 
Join Date: Jun 2003
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

its the developer machine..
How do i install the jet?? installing access will do?
 
Old June 13th, 2003, 12:38 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

get the jet pack from microsoft.. that will be better...

Gonzalo Bianchi





Similar Threads
Thread Thread Starter Forum Replies Last Post
installed DataSet Template tjordan43 ASP.NET 2.0 Basics 1 January 7th, 2008 01:00 AM
wdproj is NOT installed www2006 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 September 12th, 2007 12:11 AM
Where does Adobe Pro need to be installed? LenexaKS Reporting Services 0 July 25th, 2007 08:46 AM
.net could not be installed quetzalcoatl VS.NET 2002/2003 0 December 23rd, 2003 12:32 PM
getting installed software on my pc alaolo Pro VB.NET 2002/2003 0 June 27th, 2003 02:43 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.