ODBC - CRecordset - CRecordview

Environment : MS-Access , Visual C++

Interface : ODBC

Classes : MFC and C++

views : CRecordView


Question :

I have an combo box in my record view.
Is it possible for me to make a selection in the combo and then
upon making a selection in the combo box the program will automaticly trigger a routine that will perform a specific task.


For example :

When i select japan in the combo box
a routine will be executed automaticly.


Note : The Task that is to be perform in the routine
       depends on the programmer.


Regards

Eugene

 


eugene007Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

eugene007Author Commented:
Edited text of question.
0
inprasCommented:
Yes U can do like this
map the command handler sel change of combo box then in function
say
void CMyLangSelct::OnSelchangeLanguage()
{
      int index = m_Datatype.GetCurSel();
      datatype = m_Datatype.GetItemData(index) ;
             if (datatype == "Japan")
            {
              //Call a function or raise an event
             }
}

Hope this helps
           
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Vinayak KumbarSr Program ManagerCommented:
Hi,

What inpras meant is
void CMyLangSelct::OnSelchangeLanguage()
{
int index = m_Datatype.GetCurSel();
if(index != -1)
{
CString datatype;
m_Datatype.GetLBText(index, datatype);
if (datatype == "Japan")
{
//Call a function or raise an event
}
}
}

Try it out.
VinExpert
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.