I'm developing a database program. I would like to place my recordset objects in the document class. I open my recordset objects in the OnCreate function of my CMDIChild derived class, this allows me to terminate and not show the window if someting goes wrong. The problem is the call to GetDocument doesn't seem to work in the OnCreate before I call the base class. I have placed my recordset objects in the CMDIChild derived class to have access to them, but this doesn't seem like good MFC programming practice. Can anyone help?