So I am creating a UI for SharePoint via MS Access. Typically I advise my clients not to use multi value lists for junctions and it typically stays that way. However in this case the SharePoint UI will be used on some limited basis which requires the junction to be present and visible. Enter the multivalue list option.
I am have trouble with my multi-value delete query. With the multi value list I see that you have to treat the value list almost like an independent query. The problem is I have two criteria to filter by. The parent record and then the multi value ID. When executing the query i get an error that indicates I can not use the parent ID in a multi-value query. I tried to use a nexted select/delete statement with no luck. Went back to the basics and have been stock since.
Regional Application Mapping].ID)=241 'This is the parent record filter. I want to identify the App ID first to narrow my search on the value that I plan on deleting. mind you the servers value can be used with other parent records as an option. its technically a many to many relationship but 1 to 1 on the record level. This filter is the one that fails
I am have trouble with my multi-value delete query. With the multi value list I see that you have to treat the value list almost like an independent query. The problem is I have two criteria to filter by. The parent record and then the multi value ID. When executing the query i get an error that indicates I can not use the parent ID in a multi-value query. I tried to use a nexted select/delete statement with no luck. Went back to the basics and have been stock since.
Code:
DELETE [Regional Application Mapping].[Production Servers].Value, [Regional Application Mapping].ID FROM [Regional Application Mapping] WHERE ((([Regional Application Mapping].[Production Servers].Value)=707) AND (([Regional Application Mapping].ID)=241));
Comment