Hi all,
I am using ODBC for my program. I want to specify a filter for the records in my MS access database. When my code for performing teh filter is as follows:
m_ParticipantSet->m_strFilter = "PartName = '" +
dlg.m_PartName + "'";
The filter is successful. However when I want to change the filter to :
m_ParticipantSet->m_strFilter = "ID Number = '" +
dlg.m_IDNumber + "'";
an error is generated when I run the segment of the program which reads " Syntax error (missing operator) in query expression 'ID Number = 77234612" " where 77234612 is the value entered by the user in dlg.m_IDNumber
It is something wrong in my MS access database that I must set to be able to successfully filter the required records? Or is there something wrong with my filter string? Please advise....Thanks
I am using ODBC for my program. I want to specify a filter for the records in my MS access database. When my code for performing teh filter is as follows:
m_ParticipantSet->m_strFilter = "PartName = '" +
dlg.m_PartName + "'";
The filter is successful. However when I want to change the filter to :
m_ParticipantSet->m_strFilter = "ID Number = '" +
dlg.m_IDNumber + "'";
an error is generated when I run the segment of the program which reads " Syntax error (missing operator) in query expression 'ID Number = 77234612" " where 77234612 is the value entered by the user in dlg.m_IDNumber
It is something wrong in my MS access database that I must set to be able to successfully filter the required records? Or is there something wrong with my filter string? Please advise....Thanks