我正在使用 MS Access 2010-2013 并且我有一个更新查询,它将一些文本替换为另一个文本。我想在我的表单上将查询转换为 VBA“Sub Removereplace ()”,以循环遍历每个有问题的文本的选择案例,并在其存在时替换它。我不知道如何做到这一点,并试图通过护目镜找到一个可行的例子,但没有运气。有任何想法吗?谢谢!!!
UPDATE tbl_ImportedTabDelimited SET tbl_ImportedTabDelimited.[Long Description] = Replace(Replace(Replace(Replace([Long Description]," ft","'")," in","""")," ""L""",""),",","")
WHERE (((tbl_ImportedTabDelimited.[Long Description])
Like "*ft*" Or (tbl_ImportedTabDelimited.[Long Description])
Like "*in*" Or (tbl_ImportedTabDelimited.[Long Description])
Like "*,*" Or (tbl_ImportedTabDelimited.[Long Description])
Like "*""L""*"));