Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Database Access / April 2008



Tip: Looking for answers? Try searching our database.

Visual Basic 6.0 problem!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kevinpublic@excite.com - 28 Apr 2008 20:54 GMT
I have a fairly simple program I'm writing in VB6 to do basic project
scheduling.  It runs just fine on my computer.  I've created an
install set using the package & deployment wizard.  Here's the
problem... it only works on SOME of the computers I install it on.  I
have the following code:

Public CnxnCQ As ADODB.Connection
Public CnxnGP as ADODB.Connection
Public CnxnCV As ADODB.Connection
Public rsListOrders As ADODB.Recordset
Public UserInfo as clsUser
Public OrderInfo as clsOrder
Public strSQL as String

Sub Main()

  ConnectToTables

End Sub

Sub ConnectToTables()

  Set CnxnCQ = New ADODB.Connection
  CnxnCQ.ConnectionString = "Provider=SQLOLEDB;Data
Source=CORSICABINETS02;" & _
  "Initial Catalog=CorsiTables;" & _
  "Integrated Security=SSPI;"
  CnxnCQ.CursorLocation = adUseClient
  CnxnCQ.Open

  frmLogon.Show

For some computers, this code works just fine and the program runs
without incident.  For other computers, it gets as far as
'CnxnCQ.Open', then it gives me an "Object Required" error.

Please help!  I can't figure out why it's not working.  I've already
made sure the msado15.dll is correct for all the PCs I'm trying to
install it on.  Does anyone have any ideas why this would error out?

Thank you!
William Vaughn [MVP] - 30 Apr 2008 17:39 GMT
You did not tell us what kind of error you're getting.

You're using SSPI authentication. This assumes that the SQL Server has an
account setup for the Windows user or the group in which they are a member.

I would also double-check the version of the COM libraries to make sure they
are correct as this is the most common reason for this type of failure.

I would also transition your skills to VB.NET.

Signature

__________________________________________________________________________
William R. Vaughn
President and Founder Beta V Corporation
Author, Mentor, Dad, Grandpa
Microsoft MVP
(425) 556-9205  (Pacific time)
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
____________________________________________________________________________________________

>I have a fairly simple program I'm writing in VB6 to do basic project
> scheduling.  It runs just fine on my computer.  I've created an
[quoted text clipped - 37 lines]
>
> Thank you!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.