|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
- SQL = "[" & ActiveSheet.Name & "$F3:F" & Cells(Rows.Count, "F").End(xlUp).Row & "]"
- SQL = "SELECT a.商品编号MB,b.商品名称YSJ AS 商品名称MB,b.商品规格YSJ AS 商品规格MB,b.生产企业YSJ AS 生产企业MB,b.批准文号YSJ AS 批准文号MB FROM" & SQL & " a LEFT JOIN [Excel 12.0;Database=" & f & "].[$A2:H] b ON a.商品编号MB=b.商品名称YSJ"
- 从图片看,这样应该行:
- SQL = "[" & ActiveSheet.Name & "$F3:F" & Cells(Rows.Count, "F").End(xlUp).Row & "]"
- SQL = "SELECT 商品编号MB,商品名称YSJ AS 商品名称MB,商品规格YSJ AS 商品规格MB,生产企业YSJ AS 生产企业MB,批准文号YSJ AS 批准文号MB FROM" & SQL & " a LEFT JOIN [Excel 12.0;Database=" & f & "].[$A2:H] b ON 商品编号MB=商品名称YSJ"
复制代码 |
评分
-
1
查看全部评分
-
|