For some reason the following code will note pick up only members that have M_SEX = Male =================================================================== '## Forum_SQL - Find all records with the search criteria in them strSql = "SELECT " &strMemberTablePrefix & "MEMBERS.M_SEX, "&strMemberTablePrefix & "MEMBERS.M_HANDLE, "&strMemberTablePrefix & "MEMBERS.M_FIRSTNAME, " &strMemberTablePrefix & "MEMBERS.M_LASTNAME, "&strMemberTablePrefix & "MEMBERS.M_COMMENTS " strSql = strSql & " FROM " &strMemberTablePrefix & "MEMBERS " strSql = strSql & " WHERE " & strMemberTablePrefix & "MEMBERS.M_SEX = Male " strSql = strSql & "ORDER BY " & strMemberTablePrefix & "MEMBERS.M_SEX ASC" ===================================================================
If I remove the where line the report will fine.
What is wrong ??
I've I query the database via sql :
SELECT FORUM_MEMBERS.MEMBER_ID, FORUM_MEMBERS.M_SEX FROM `Z:\phil\leamington`.FORUM_MEMBERS FORUM_MEMBERS WHERE (FORUM_MEMBERS.M_SEX='Male')