Solved

How Recordset close in the vb6

Posted on 2006-11-20
1
648 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
1 Comment
 
LVL 5

Accepted Solution

by:
sivachirravuri earned 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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 …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

920 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now