我有两个表,比方说表1和表2。两个表中的列在标题下面。
Table 1
1. ABC
2. DEF
3. GHI
Table 2
1. ABC
2. FED
3. IHG
和在excel中一样,我们在表1和表2的第1列和表2之间使用Vlookup
,然后从表2的第2列中提取值,我需要使用表2中的列2更新表1中的列1中的值。例如Vlookup(Column1. table 1, [1 and 2].table 2, 2 , )
在access中,我使用update查询,并使用下面的公式更新表1的第1列。
Column 1.table 1 = Dlookup("[Column 2].[Table 2]", "Table 2" , "[Column 1].Table2 = '[Column 1].table1 '")
我使用Dlookup
作为文本类型。所以我已经应用了字符串1的公式。
我没有得到在普通Vlookup
中应该得到的期望值。相反,我的最终结果是一片空白。为什么会发生这种情况?
https://stackoverflow.com/questions/52191544
复制相似问题