D
Douglas J. Steele
Before the queries are run, set SetWarnings False, then SetWarnings True
after you've run.
BTW, it's possible to do update and append in a single query.
UPDATE NewData LEFT JOIN ExistingData
ON [NewData].[ID] = [ExistingData].[ID]
SET [ExistingData].[ID] = [NewData].[ID],
[ExistingData].[Field1] = [NewData].[Field1],
[ExistingData].[Field2] = [NewData].[Field2], ... (need to do this for each
field)
This is discussed in http://support.microsoft.com/?id=127977
after you've run.
BTW, it's possible to do update and append in a single query.
UPDATE NewData LEFT JOIN ExistingData
ON [NewData].[ID] = [ExistingData].[ID]
SET [ExistingData].[ID] = [NewData].[ID],
[ExistingData].[Field1] = [NewData].[Field1],
[ExistingData].[Field2] = [NewData].[Field2], ... (need to do this for each
field)
This is discussed in http://support.microsoft.com/?id=127977