各位老师:
请教一个很问题,期望能解决,谢谢!!!
一个查询SQL语句如下:
SELECT ReportCaptionW([产品类型ID]) AS 类别, 模具零件下单清单.模号, 模具零件下单清单.订单号, 模具零件下单清单.行, FUTU([品名]) AS 名称, 模具零件下单清单.规格, 模具零件下单清单.订单数量 AS 数量, 模具零件下单清单.进仓日期, 模具零件下单清单.发放日期
FROM 模具零件下单清单
WHERE (((模具零件下单清单.进仓日期) Between [Forms]![模具部配件出入库查询窗体]![StartDate] And [Forms]![模具部配件出入库查询窗体]![EndDate]))
ORDER BY ReportCaptionW([产品类型ID]), 模具零件下单清单.模号, 模具零件下单清单.订单号, 模具零件下单清单.行;
如何修改成sql语句
dim StrSql as string
strSql=" ...修改 ..."
strsql="SELECT ReportCaptionW([产品类型ID]) AS 类别, 模具零件下单清单.模号, 模具零件下单清单.订单号, 模具零件下单清单.行, FUTU([品名]) AS 名称, 模具零件下单清单.规格, 模具零件下单清单.订单数量 AS 数量, 模具零件下单清单.进仓日期, 模具零件下单清单.发放日期
FROM 模具零件下单清单
WHERE (((模具零件下单清单.进仓日期) Between [Forms]![模具部配件出入库查询窗体]![StartDate] And [Forms]![模具部配件出入库查询窗体]![EndDate]))
ORDER BY ReportCaptionW([产品类型ID]), 模具零件下单清单.模号, 模具零件下单清单.订单号, 模具零件下单清单.行;"
如果太长,就用 续行符号 _