Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old September 15th, 2004, 09:40 PM
agni_yudha agni_yudha is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Location: Indonesia
Posts: 1 agni_yudha User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to agni_yudha
Run-time '-2147217904(80040e10)'

Hi All,

I need some help, when i am running my code (VB6) i get error message "Run-time '-2147217904(80040e10)'". This is example of my code :

oSQL = "SELECT PriceBook.Cuid,PriceBook.CustName,PriceBook.ShipID ,PriceBook.Shipname,PriceBook.Itemnumber,PriceBook .ItemnName,"
oSQL = oSQL & "PriceBook.From,PriceBook.To,PriceBook.Price,PriceB ook.In,PriceBook.Out FROM PriceBook Order By PriceBook.CUID"

oRecord2.CursorLocation = adUseClient
oRecord2.Open oSQL, oConn2, adOpenStatic, adLockReadOnly

Regards

Me

Reply With Quote
  #2  
Old September 15th, 2004, 10:42 PM
Doug G Doug G is offline
Grumpier Old Moderator
ASP Free God 11th Plane (10000 - 10499 posts)
 
Join Date: Sep 2003
Posts: 10,143 Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level)Doug G User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 18 h 33 m 48 sec
Reputation Power: 180
What line of code is generating the error?
__________________
======
Doug G
======
I didn't attend the funeral, but I sent a nice letter saying I approved of it. --Mark Twain

Reply With Quote
  #3  
Old September 17th, 2004, 11:13 PM
jdarden jdarden is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Sep 2004
Posts: 8 jdarden User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
'Add the Reference "Microsoft ActiveX Data Objects Library 2.6"
'Add the Component "Microsoft ADO Data Control 6.0 (SP4) (OLEDB)"

Dim rstRecordSet As New ADODB.Recordset
Dim cnConnection As New ADODB.Connection
Dim strConnectionString As String
Dim strServerName As String
Dim strDatabaseName As String
Dim strUserName As String
Dim strPassword As String

strServerName = "JDARDEN"
strDatabaseName = "TEST"
strUserName = "SA"
strPassword = "PASSWORD"

'************************************************* **************************************************
'All of this goes on one line
'************************************************* **************************************************
strConnectionString = "Provider=SQLOLEDB.1;Password=" & strPassword & ";Persist Security Info=True;User ID=" & strUserName & ";Initial Catalog=" & strDatabaseName & ";Data Source=" & strServerName & ""
'************************************************* **************************************************

cnConnection.ConnectionString = strConnectionString
cnConnection.Open

'************************************************* **************************************************
'All of this goes on one line
'************************************************* **************************************************
rstRecordSet.Open "SELECT PriceBook.Cuid, PriceBook.CustName, PriceBook.ShipID, PriceBook.Shipname, PriceBook.Itemnumber, PriceBook.ItemnName, PriceBook.From, PriceBook.To, PriceBook.Price, PriceBook.In, PriceBook.Out FROM PriceBook Order By PriceBook.CUID", cnConnection, adOpenStatic, adLockReadOnly
'************************************************* **************************************************

Reply With Quote
  #4  
Old September 20th, 2004, 03:40 PM
Kristin Kristin is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Posts: 56 Kristin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Just a thought....I get this error when I have a previous connection string still hanging out there open. Make sure it is a NEW, free connection you are opening

kristin

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > Run-time '-2147217904(80040e10)'


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway