Zulfi Khan
April 29th, 1999, 03:07 AM
I have linked a VC++ program with a access database. I want the Yes/No field in the database associated to the radio button.
|
Click to See Complete Forum and Search --> : How to associate Yes/No field with a radio button Zulfi Khan April 29th, 1999, 03:07 AM I have linked a VC++ program with a access database. I want the Yes/No field in the database associated to the radio button. Marco May 6th, 1999, 04:11 PM 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. codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |