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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot open recordset with select statement

Status
Not open for further replies.

P4L

Programmer
Aug 10, 2003
6
Hello everybody,
i'm new to c++ and MFC and am not too experienced in programming anyway. i have the following question:
I have used OpenEx on a CDatabase object without an error.
I have created a CRecordset object with my CDatabase object.
The Open function on the recordset with a select statement fails. I can't catch any existing exception except catch(...). If anyone could help me how to call the open function that it succeeds i would be very greatful. thanks in advance.
 
Are you using CRecordset by itself or did you derive a class from CRecordset that looks at the database in question? If you did not derive the class, you will need to. Otherwise, it wont know what to do.

Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top