I'm working on a program that connects to a Microsoft Access database, and am about 2/3 of the way done. It will edit string data from the text boxes, but not numeric. I have tried numerous conversions, but I keep getting error messages like this conversion is not possible. pAmount is the one pesky item that won't work. Please help. Here is the section of code:
void CProject2cView::OnEdit()
{
m_pSet->AddNew();
m_pSet->Edit();
m_pSet->Update();
CEdit* pPayto = (CEdit*)GetDlgItem(IDC_PAYTO);
//CEdit* pAmount =(CEdit*)GetDlgItem(IDC_AMOUNT);
CEdit* pDate = (CEdit*)GetDlgItem(IDC_DATE);
CEdit* pMemo = (CEdit*)GetDlgItem(IDC_MEMO);
pPayto->GetWindowText(m_pSet->m_payto);
pDate->GetWindowText(m_pSet->m_date);
pMemo->GetWindowText(m_pSet->m_memo);
//I tried the same line for pAmount but it wouldn't work.
UpdateData();
}