|
楼主大师 您好!
我下面一段SQL联合查询语句 放到VBA里该怎么写呢 求指教 万分感谢!!
我这代码放到数据连接是没有问题的,然后也单句放到VBA试过没有问题,就是不知在VBA里面如何一起实现合并!
select [模 号],[厂 家],[型 号],[产品名称],[钳工组长] from[2012$] where [模 号] is not null union all
select [模 号],[厂 家],[型 号],[产品名称],[钳工组长] from[2013$] where [模 号] is not null union all
select [模 号],[厂 家],[型 号],[产品名称],[钳工组长] from[2014$] where [模 号] is not null union all
select [模 号],[厂 家],[型 号],[产品名称],[钳工组长] from[2015$] where [模 号] is not null union all
select [模 号],[厂 家],[型 号],[产品名称],[钳工组长] from[2016$] where [模 号] is not null |
|