Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Questions with ADO and Cursortypes

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Ya'll are gonna get sick of hearing me ask all these questions...but I can't really find them anywhere else...plus I'm new to VC++ and I think this message forum is GREAT!

I'm connected to a SQL database using VC++. I've got a problem that when I search for something on the database and it's not there, my program crashes. A friend of mine told me to use the RecordCount method to see if there are any records in my Recordset object...if there is not, then it's not in the database. Well, I thought that was a great idea until I tried it. I keep getting a -1 when I use RecordCount...I've tried the different cursors (mainly adOpenKeyset) but with no luck. Could it be that the provider just doesn't support it? If that's true, why can my friend use the similar RecordCount method in VB? Any and all help would be greatly appreciated. Thanks in advance!

Niky Williams
NTS Marketing
 
Oh great! Wonderful gobs of information. Thank you so much. I've been on MSDN Online to look for things, but it's so large that I sometimes miss some important things. Thanks again!

Niky Williams
NTS Marketing
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top