|
-
April 29th, 1999, 03:07 AM
#1
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.
-
May 6th, 1999, 04:11 PM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|