Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB Databases Basics
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old June 13th, 2003, 06:24 AM
Registered User
 
Join Date: Jun 2003
Location: , , .
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
Reply With Quote
  #2 (permalink)  
Old June 13th, 2003, 09:16 AM
Friend of Wrox
Points: 7,395, Level: 36
Points: 7,395, Level: 36 Points: 7,395, Level: 36 Points: 7,395, Level: 36
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
Posts: 2,190
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
Reply With Quote
  #3 (permalink)  
Old June 13th, 2003, 11:01 AM
Registered User
 
Join Date: Jun 2003
Location: , , .
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
Reply With Quote
  #4 (permalink)  
Old June 13th, 2003, 11:30 AM
Friend of Wrox
Points: 7,395, Level: 36
Points: 7,395, Level: 36 Points: 7,395, Level: 36 Points: 7,395, Level: 36
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
Posts: 2,190
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
Reply With Quote
  #5 (permalink)  
Old June 13th, 2003, 11:32 AM
Registered User
 
Join Date: Jun 2003
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

an access2000 db
Reply With Quote
  #6 (permalink)  
Old June 13th, 2003, 11:37 AM
Friend of Wrox
Points: 7,395, Level: 36
Points: 7,395, Level: 36 Points: 7,395, Level: 36 Points: 7,395, Level: 36
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
Posts: 2,190
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
Reply With Quote
  #7 (permalink)  
Old June 13th, 2003, 11:50 AM
Registered User
 
Join Date: Jun 2003
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

no same thing hapens! :(
Reply With Quote
  #8 (permalink)  
Old June 13th, 2003, 12:00 PM
Friend of Wrox
Points: 7,395, Level: 36
Points: 7,395, Level: 36 Points: 7,395, Level: 36 Points: 7,395, Level: 36
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
Posts: 2,190
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
Reply With Quote
  #9 (permalink)  
Old June 13th, 2003, 12:16 PM
Registered User
 
Join Date: Jun 2003
Location: , , .
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?
Reply With Quote
  #10 (permalink)  
Old June 13th, 2003, 12:38 PM
Friend of Wrox
Points: 7,395, Level: 36
Points: 7,395, Level: 36 Points: 7,395, Level: 36 Points: 7,395, Level: 36
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Capital Federal, , Argentina.
Posts: 2,190
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
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
installed DataSet Template tjordan43 ASP.NET 2.0 Basics 1 January 7th, 2008 12: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 11:32 AM
getting installed software on my pc alaolo Pro VB.NET 2002/2003 0 June 27th, 2003 02:43 PM



All times are GMT -4. The time now is 05:52 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.