Help:
I am really a novice working with SQL. I have an Access 2000 Project form that has three combo boxes, and the information needs to be held in the prospect fields in the table, as I report heavily off this information. The combo boxes need to cascade from Combo Box 1 to Combo Box 2 then to Combo Box three.
I have been having great difficulty getting the SQL right to do this. I have even tried building it in an Access DB, and was able to get it to work. Then put in to SQL view (in ACCESS), but it doesn't like the SQL.
Sample:
SELECT DISTINCTROW tblSubCategory.PKSCID, tblSubCategory.strSubCat, tblSubCategory.FKCategoryID
FROM tblSubCategory
WHERE (((tblSubCategory.FKCategoryID)=[Forms]![frmSyncComboBoxes]![cboCategories]))
ORDER BY tblSubCategory.PKSCID;
I get errors in a View, and Store Procedures.
If feel that I am close, but haven't a clue what to do to fix the problem.
Can someone point me the right direction here.
I am really a novice working with SQL. I have an Access 2000 Project form that has three combo boxes, and the information needs to be held in the prospect fields in the table, as I report heavily off this information. The combo boxes need to cascade from Combo Box 1 to Combo Box 2 then to Combo Box three.
I have been having great difficulty getting the SQL right to do this. I have even tried building it in an Access DB, and was able to get it to work. Then put in to SQL view (in ACCESS), but it doesn't like the SQL.
Sample:
SELECT DISTINCTROW tblSubCategory.PKSCID, tblSubCategory.strSubCat, tblSubCategory.FKCategoryID
FROM tblSubCategory
WHERE (((tblSubCategory.FKCategoryID)=[Forms]![frmSyncComboBoxes]![cboCategories]))
ORDER BY tblSubCategory.PKSCID;
I get errors in a View, and Store Procedures.
If feel that I am close, but haven't a clue what to do to fix the problem.
Can someone point me the right direction here.