Searching record fields using ODBC VC++ 4.0
Posted on 1998-11-09
I'm trying to figure out how to do a search in an ODBC application (VC++4.0). Unlike the MFC DAO database classes, the MFC ODBC recordset class does not have a Find member function. Say I have five fields per record, and want to search all the fields in each record until I find the string I am looking for. Assuming there is a command, how do I do the loop?? Do I use the m_pSet in the view that points to the record set? If so, how exactly do I go about it? If you have any sample code please feel free to supply a copy. Thanks!