The "Where" segment of the following query is not working. Specifically, while it does return rows that match, the result set also includes rows with totally different values in them ("2005", "2007", etc):
SFMSPUSR_INDEX_NO is a linked table to an external database I don't control, and has no primary key. I'm guessing that's at the root of the unpredictable "WHERE" behavior, but I don't know how to fix it. No column in the data can serve as a true key (some whole rows in the table appear to be blank?!?!?). And with a linked table I can't add a column to serve as the key, can I?
VBAjedi
Code:
SELECT SFMSPUSR_INDEX_NO.APPN_YEAR, SFMSPUSR_INDEX_NO.INDEX_NO, SFMSPUSR_INDEX_NO.INDEX_NO_TITLE, SFMSPUSR_INDEX_NO.ORG_CODE
FROM SFMSPUSR_INDEX_NO
WHERE (((SFMSPUSR_INDEX_NO.APPN_YEAR)="2011"));
SFMSPUSR_INDEX_NO is a linked table to an external database I don't control, and has no primary key. I'm guessing that's at the root of the unpredictable "WHERE" behavior, but I don't know how to fix it. No column in the data can serve as a true key (some whole rows in the table appear to be blank?!?!?). And with a linked table I can't add a column to serve as the key, can I?
VBAjedi