我在这句话中得到3075错误:
sql = "UPDATE [qr_code] SET [qr_code].[sequence]=[qs_code].[sequence] FROM [qr_code] RIGHT JOIN [qs_code] ON [qs_code].[sequence_ref]=[qr_code].[sequence_ref]"
DoCmd.RunSQL sql
它适用于SQL。
答案 0 :(得分:1)
使用MS Access'创建/查询设计工具让我觉得SQL语句应该是
UPDATE [qr_code] RIGHT JOIN [qs_code]
ON [qr_code].[sequence_ref] = [qs_code].[sequence_ref]
SET [qr_code].[sequence] = [qs_code].[sequence];