Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Beginning VB 6
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 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 October 14th, 2003, 01:33 PM
Registered User
 
Join Date: Oct 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default ADODB connection for Recordset

I have a ADODB connection using a ODBC informix connection string in VB script. however when I try to use the connection to open a record set. It gives me the error"The connection cannot be used to perform this operation
It is either closed or invalid".

oConn.connectionstring = "Provider=Ifxoledbc;Password=pass;Persist Security Info=True;User ID=user;Data Source=market_report;"

 oRs.ActiveConnection = oConn


Please advice.




 
Old October 14th, 2003, 04:24 PM
sal sal is offline
Friend of Wrox
 
Join Date: Oct 2003
Posts: 702
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You are not opening the connection
oConn.connectionstring = "Provider=Ifxoledbc;Password=pass;Persist Security Info=True;User ID=user;Data Source=market_report;"

oConn.Open

oRs.ActiveConnection = oConn


Sal





Similar Threads
Thread Thread Starter Forum Replies Last Post
ADODB.Recordset (0x800A0BB9) knight Classic ASP Databases 3 November 9th, 2006 05:08 AM
ADODB Recordset sporkman43 Classic ASP Basics 4 November 9th, 2006 04:51 AM
Column Name from ADODB Recordset Paula222 Access VBA 3 February 10th, 2006 12:08 PM
ADODB.Recordset (0x800A0CB3)Current Recordset does tks_muthu Classic ASP Databases 0 June 16th, 2005 07:22 AM
How to get adodb.record from adodb.recordset John Pennington Pro VB Databases 1 November 20th, 2004 06:17 AM





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