I have linked a VC++ program with a access database. I want the Yes/No field in the database associated to the radio button.
Printable View
I have linked a VC++ program with a access database. I want the Yes/No field in the database associated to the 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.