You also need to correct the sql as below
strSql = "SELECT M.MEMBER_ID, M.M_PHOTO_URL, M.M_NAME, "
strSql = strSql & "M.M_FIRSTNAME, M.M_LASTNAME, M.M_AGE "
strSql = strSql & "FROM " & strMemberTablePrefix & "MEMBERS M "
'strSql = strSql & "WHERE M.M_PHOTO_URL <> ''"