Are you using Visual C++? If your fields are string controls then you can just do the following.
int value;
value = m_StringFieldOne.Compare(m_StringFieldTwo);
if(value == 0) { AfxMessageBox("The strings in both fields are the same."); }
Grant
Grant M. Johnson
Project Engineer
LECO Corporation