?
Solved

How Recordset close in the vb6

Posted on 2006-11-20
1
Medium Priority
?
659 Views
Last Modified: 2008-01-09
Hi,
How i m know in the project which form has which recordset open. in visualbasic 6.0. i m using vb6 + msAccess
0
Comment
Question by:jay_gadhavi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 5

Accepted Solution

by:
sivachirravuri earned 1500 total points
ID: 17977795
Hi,

Consider "rs" as record set.

rs.state will return you whether it is Open or close
For close it will return 0


'Sample code

Dim rs As New ADODB.Recordset

Private Sub Form_Load()
If rs.State = adStateclosed Then Msgbox "Connection closed"
End Sub
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is about my first experience with programming Arduino.
If you are a mobile app developer and especially develop hybrid mobile apps then these 4 mistakes you must avoid for hybrid app development to be the more genuine app developer.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Six Sigma Control Plans

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question