Wrox Programmer Forums
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To 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 January 3rd, 2006, 04:51 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 196
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to jmss66
Default

That's what I am working on right now and I am encountering errors in the program like if I am openning a view, it's not letting, otherwise everythings working. The connection string on the property page is below, maybe you can help me figure out what I can strike out from the connection string.

objConnOracle = "DRIVER={ORACLE ODBC DRIVER};SERVER=HFIRE_PRD;UID=ID_NAME;PWD=PASSWORD; DBQ=HFIRE_PRD;DBA=W;APA=T;FEN=T;QTO=T;FRC=10;FDL=1 0;LOB=T;RST=T;FRL=F;MTS=F;CSR=F;PFC=10;TLO=O;"


 
Old January 3rd, 2006, 05:09 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 196
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to jmss66
Default

I get a run-time error 91;
Object variable or With block variable not set.

This is the error message I get. Once we get this resolved I will use this connection string for all Oracle connections. Thanks for your help.

 
Old January 3rd, 2006, 08:59 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 196
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to jmss66
Default

I was wrong in pressuming that I get this error only when I access a view. I decided to use a table and it gave me the same error message. It seems like when there is no record in the table it gives me this error. I validate the recordset by with

If not recordset.eof then
   update ACCESS table
End if

Where am I going wrong?

Thanks,
Judy

 
Old January 4th, 2006, 09:39 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 196
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to jmss66
Default

Okay, I finally got it to work. I had to try different connection strings. I ended up using the following connection string:

objConnOracle = "DRIVER={Microsoft ODBC for Oracle};UID=[MY_USERID];PWD=[MY_PASSWORD];SERVER=[SERVER_NAME];"


Thanks for your help. I appreciate all the suggestions you gave me. That got me started to experiment.


Cheers,
Judy


 
Old April 6th, 2006, 08:14 AM
Authorized User
 
Join Date: Aug 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Star007
Default

hi,

the error msg is : Run-time Error '3706'
Provider cannot be found. It may not be properly installed.




I am having problem with my VB application. I was using sql server 2000 local on my pc with VB and it was working fine. NOw I have sql server 2005 express on a network pc.

when I changed the connection string for that, I am getting the above error

here is my connection string:

Dim cn As ADODB.Connection
    Set cn = New Connection
    cn.ConnectionString = "Provider=SQLNCLI.1;Integrated Security=SSPI;" & _
        "Persist Security Info=False;" & _
        "AttachDBFileName=" & App.Path & "\xstar_Data.mdf;Data Source=starsql\sqlexpress"
    cn.Open



please help me.

I try installing the latest mdac_tpe and vbrun60sp5.exe for VB

but no help.


please help?????????

***************


***************





Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert Query Error & Run-Time Error 3022 DavidWE Access 1 July 31st, 2008 11:17 AM
Run-time Error '3706' Provider cannot be found Star007 VB How-To 1 August 10th, 2006 05:02 AM
Run-time Error '3706' Star007 Beginning VB 6 1 April 20th, 2006 11:58 AM
Run-time Error '3706' Star007 VB Databases Basics 0 April 6th, 2006 07:01 AM
Run-time Error '3706' Provider cannot be found. It Star007 Pro VB Databases 1 April 5th, 2006 04:55 PM





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