I currently have records in a table (tblMPCIPolicyDetail) that need to be updated every year. I have a field called CropYear that I need to change from 2015 to 2016 while still keeping the 2015 records.
When trying to add these new records I get an error that multi value fields can not be used. Which is referencing a PolOptions field. I don't wish to change these in mass by the query just the CropYear value.
What I have done so far....
Copied the tblMPCIPolicyDetail to tblMPCIPolicyDetail_Temp and deleted out everything that I don't want to change yet. I then changed the CropYear to 2016 for this group of records.
I found this using google - https://social.msdn.microsoft.com/F...e-multi-value-field-in-access?forum=accessdev
Substituting my field names came up with this SQL:
INSERT INTO tblMPCIPolicyDetail ( [PolOptions].Value)
SELECT [PolOptions].Value FROM (SELECT [PolOptions].Value, [tblMPCIPolicyID] FROM [tblMPCIPolicyDetail_Temp]) AS T1
WHERE [tblMPCIPolicyDetail].[tblMPCIPolicyID]=T1.[tblMPCIPolicyID];
Now while this worked to some extent it didn't do what I planned. It did change my PolOptions field but changed it to every option that was listed in the query and added those to options to every record in tblPolicyDetail.:banghead:
Any help would be appreciated...
When trying to add these new records I get an error that multi value fields can not be used. Which is referencing a PolOptions field. I don't wish to change these in mass by the query just the CropYear value.
What I have done so far....
Copied the tblMPCIPolicyDetail to tblMPCIPolicyDetail_Temp and deleted out everything that I don't want to change yet. I then changed the CropYear to 2016 for this group of records.
I found this using google - https://social.msdn.microsoft.com/F...e-multi-value-field-in-access?forum=accessdev
Substituting my field names came up with this SQL:
INSERT INTO tblMPCIPolicyDetail ( [PolOptions].Value)
SELECT [PolOptions].Value FROM (SELECT [PolOptions].Value, [tblMPCIPolicyID] FROM [tblMPCIPolicyDetail_Temp]) AS T1
WHERE [tblMPCIPolicyDetail].[tblMPCIPolicyID]=T1.[tblMPCIPolicyID];
Now while this worked to some extent it didn't do what I planned. It did change my PolOptions field but changed it to every option that was listed in the query and added those to options to every record in tblPolicyDetail.:banghead:
Any help would be appreciated...