Wrox Programmer Forums
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ 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 September 9th, 2003, 11:25 AM
Registered User
Join Date: Sep 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default CBDException

When try to delete a record, CRecordset throws a AFX_SQL_ERROR_NO_CURRENT_RECORD exception... Anybody knows what it means? My sql query is right...
CRecordset m_reg;
m_reg.m_strFilter = "ID_NET=0 AND ID_CASE=107 AND NAME='gr' AND PT_PTO='Line AC 1 3 1'";
m_reg.Delete(); //exception


Old September 12th, 2003, 12:59 AM
Friend of Wrox
Join Date: Jun 2003
Posts: 453
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Ankur_Verma Send a message via MSN to Ankur_Verma

Shouldnt you call Requery before calling
Delete. The problem seems to be that there is no
valid current record in the record set to be

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