I have generated an UPDATE statement but keep getting the error message that it was expecting a reserved word.
Naturally the statement begins with UPDATE so I can't figure out where the problem is.
could someone please take a look and help?
UPDATE tblComparativeVolume RIGHT JOIN tblVolumeData ON tblComparativeVolume.Id = tblVolumeData.Id
SET tblComparativeVolume.[Date] = [tblVolumeData].[Date], tblComparativeVolume.Client = [tblVolumeData].[Client],
tblComparativeVolume.Activity = [tblVolumeData].[Activity], tblComparativeVolume.Product = [tblVolumeData].[Product],
tblComparativeVolume.ActivityDesc = [tblVolumeData].[ActivityDesc],
tblComparativeVolume.Period2 = [tblVolumeData].[TotalVolume]
WHERE [tblVolumeData].[Date] BETWEEN #4/1/2000# AND #6/30/2000#
this works in an ordinary query so why not in a querydef?
ps - I know that all field names should be enclosed in square brackets and they are in the querydef.
Naturally the statement begins with UPDATE so I can't figure out where the problem is.
could someone please take a look and help?
UPDATE tblComparativeVolume RIGHT JOIN tblVolumeData ON tblComparativeVolume.Id = tblVolumeData.Id
SET tblComparativeVolume.[Date] = [tblVolumeData].[Date], tblComparativeVolume.Client = [tblVolumeData].[Client],
tblComparativeVolume.Activity = [tblVolumeData].[Activity], tblComparativeVolume.Product = [tblVolumeData].[Product],
tblComparativeVolume.ActivityDesc = [tblVolumeData].[ActivityDesc],
tblComparativeVolume.Period2 = [tblVolumeData].[TotalVolume]
WHERE [tblVolumeData].[Date] BETWEEN #4/1/2000# AND #6/30/2000#
this works in an ordinary query so why not in a querydef?
ps - I know that all field names should be enclosed in square brackets and they are in the querydef.