CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 1999
    Location
    Pakistan
    Posts
    207

    How to associate Yes/No field with a radio button

    I have linked a VC++ program with a access database. I want the Yes/No field in the database associated to the radio button.


  2. #2
    Join Date
    May 1999
    Location
    Piacenza, ITALIA
    Posts
    30

    Re: How to associate Yes/No field with a radio button

    I think you have generated a CDaoRecordset, right ?

    OK, go to the class wizard, select your dialog class, click the "Class info" tab. Select your CDaoRecordset in the "Foreign class" combo, assign a variable in the "foreign variable" Edit field, e.g. "m_pSet". When you now add a member variable to your control (class wizard), you should be able to select your "m_pSet->m_..." where ... is your variable name linked to the yes/no column in the CRecordset. This works with the enterprise edition (US), I had troubles with this feature in the prof. ed. (german version).

    btw: dont forget to pass a pointer to the recordset to m_pset in the OnInitDialog() member or in the function calling the dialog.


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