Article ID: 125367
Article Last Modified on 11/21/2006
BOOL CAboutDlg::OnInitDialog()
{
CEnrollDoc * pDoc=(CEnrollDoc *) (GetParentFrame()->
GetActiveDocument());
m_pSet= &(pDoc->m_SomeRecordset);
m_pSet->Open();
CDialog::OnInitDialog();
return TRUE;
}
Before using this code, make sure the CSectionSet object (derived from
CRecordset) is defined as the public member variable of the CEnrollDoc
class (derived from CDocument). Note, in the code above, this member
variable is named 'm_SomeRecordset You can add additional code to check
for CDBExceptions and to allow the user to move through the records.Additional query words: kbvc150 kbvc151 kbvc152 kbvc200 kbvc210 kbvc400 kbvc410 kbvc420 kbvc500 kbvc600
Keywords: kbhowto kbdatabase KB125367