CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Database UI

  1. #1
    Guest

    Database UI

    I have to provide a UI, where the user can add new items in the DB.The DB has several fields and some of them are encrypted, butthe user should be able to view the decrypted data. I should also have the possibility to copy and paste an entire row or rows.The UI should look similar to the DB. I have tried the DB grid control, but I am not able to do much with it.


  2. #2
    Guest

    Filtering table type Recordset

    I am trying to filter a table type recordset in following way (directly call to DAO)
    First derive a class CMyDatabase from CDaoDatabase, then add function SetFilter as follows (I am really not sure it's right or not):
    void CMyDatabase::SetFilter(LPCTSTR szTable, LPCTSTR szFilter)
    {
    DAORecordset* pDAORecordset = NULL;
    if (m_pDAORecordsets == NULL)
    InitWorkspace();

    try
    {
    DAO_CHECK(m_pDAORecordsets->get_Item(COleVariant(szTable, VT_BSTRT), &pDAORecordset));
    DAO_CHECK(pDAORecordset->put_Filter(COleVariant(szFilter, VT_BSTRT).bstrVal));
    }
    ... ...
    }
    The problem is m_pDAORecordsets is allways NULL. Can anyone help me out?
    Thanks.


  3. #3
    Join Date
    Apr 1999
    Posts
    4

    Re: Filtering table type Recordset

    Maybe you have not initialised the Recordset object with a Database. Try CDAORecordset::Open
    anad then access m_pDAORecordsets.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured