Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ADO Binding

Status
Not open for further replies.

KCI

Programmer
Jun 30, 2003
39
DE
All,

I’m trying to work out a bug and I was hoping someone might have some insight.

I created an app using ADO BINDING. Seems straight forward, I’ve seen several examples from Microsoft and also used the walkthrough from Teach yourself C++ in 21 days ( Everything works great except two fields. Here is one of the two offending binds.

ADO_VARIABLE_LENGTH_ENTRY2(16, adVarChar, m_szAddress2, sizeof(m_szAddress2), lAddress2Status, TRUE)

It looks like lAddress2Status always equals 3 when evaluating the following:

if (adFldOK == pRs->lAddress2Status)
m_strAddress2 = pRs->m_szAddress2;
else
m_strAddress2 = _T("");

which bumps the code into the else always leaving the edit box blank.

Does anyone know how lAddress2Status value gets set and what the different values are?

Your help would be greatly appreciated.

Let me know if I can provide additional info.

Thanks
KCI
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top