|
- SELECT *
- FROM (SELECT 阻燃历史表.化验日期, 阻燃产品.产品, 阻燃历史表.批号, 阻燃历史表.锅号, 阻燃历史表.色号, 阻燃历史表.水份, 阻燃历史表.酸值, 阻燃历史表.粘度, 阻燃历史表.醛含量, 分析员.分析员, 阻燃历史表.备注 FROM (阻燃历史表 INNER JOIN 阻燃产品 ON 阻燃历史表.产品=阻燃产品.产品) INNER JOIN 分析员 ON 阻燃历史表.分析员=分析员.分析员) AS a
- WHERE (((阻燃历史表.化验日期) Between (IIf(IsNull(Forms!阻燃分析查询窗口!开始日期),#1/1/2000#,Forms!阻燃分析查询窗口!开始日期))
- And (IIf(IsNull(Forms!阻燃分析查询窗口!结束日期),#12/31/2099#,Forms!阻燃分析查询窗口!结束日期)))
- And ((a.产品) Like IIf(IsNull(Forms!阻燃分析查询窗口!产品),'*',Forms!阻燃分析查询窗口!产品))
- And ((a.批号) Like IIf(IsNull(Forms!阻燃分析查询窗口!批号),'*','*' & Forms!阻燃分析查询窗口!批号 & '*'))
- And ((a.色号) Between IIf(IsNull(Forms!阻燃分析查询窗口!色号大于),0,Forms!阻燃分析查询窗口!色号大于)
- And IIf(IsNull(Forms!阻燃分析查询窗口!色号小于),5000,Forms!阻燃分析查询窗口!色号小于))
- And ((a.水份) Between IIf(IsNull(Forms!阻燃分析查询窗口!水份大于),0,Forms!阻燃分析查询窗口!水份大于)
- And IIf(IsNull(Forms!阻燃分析查询窗口!水份小于),5000,Forms!阻燃分析查询窗口!水份小于))
- And ((a.酸值) Between IIf(IsNull(Forms!阻燃分析查询窗口!酸值大于),0,Forms!阻燃分析查询窗口!酸值大于)
- And IIf(IsNull(Forms!阻燃分析查询窗口!酸值小于),5000,Forms!阻燃分析查询窗口!酸值小于))
- And ((a.粘度) Between IIf(IsNull(Forms!阻燃分析查询窗口!粘度大于),0,Forms!阻燃分析查询窗口!粘度大于)
- And IIf(IsNull(Forms!阻燃分析查询窗口!粘度小于),5000,Forms!阻燃分析查询窗口!粘度小于))
- And ((a.醛含量) Between IIf(IsNull(Forms!阻燃分析查询窗口!醛含量大于),0,Forms!阻燃分析查询窗口!醛含量大于)
- And IIf(IsNull(Forms!阻燃分析查询窗口!醛含量小于),5000,Forms!阻燃分析查询窗口!醛含量小于))
- And ((a.分析员) Like IIf(IsNull(Forms!阻燃分析查询窗口!分析员),'*',Forms!阻燃分析查询窗口!分析员))
- And ( IIf(IsNull(Forms!阻燃分析查询窗口!锅号),a.锅号 is null ,a.锅号 Like '*' & Forms!阻燃分析查询窗口!锅号 & '*'))
- And (IIf(IsNull(Forms!阻燃分析查询窗口!备注),a.备注 is null,a.备注 Like '*' & Forms!阻燃分析查询窗口!备注 & '*')));
复制代码
#化验单#-8-14.rar
(64.96 KB, 下载次数: 10)
|
|