我有一个这样的字符串:
"'where CAST(a.DT_NPE_SORTIE as integer ) < cast (add_months (cast (a.dt_nep_restructuration as date format 'YYYYMMDD'), 12) as integer) and a.DT_NPE_SORTIE is not null and a.DT_NPE_SORTIE <> '99991231' and a.dt_npe_restructuration is not null and a.dt_npe_restructuration <> '99991231'"
我需要提取所有"a.FIELDNAME"喜欢a.dt_nep_restructuration,a.DT_NPE_SORTIE从以前的屏幕。
我需要在 VBA 中为工作中的项目执行此操作。
到目前为止,我使用If&InStr来检查字符串中是否存在值列表。但是对我来说提取所有 a.FIELDNAME 然后检查它们是否与数组中的 fieldname 匹配会更容易。
此致,
约夫策尔