2024-10-31 10:32:46
我个人认为,在ACCESS中,用可视化操作做查询,比直接写SQL语更有效率。另,中文的表名和字段名和字母的没什么区别。如下所示,中文表名和中文字段名:
SELECT H_入库单.入库单号, H_入库单.入库日期, H_入库单.审核, H_入库单.审批, H_入库单.供应商, H_入库单.异动性质, H_入库单.制单人, Format([入库日期],"yyyy/mm/dd") AS 交货日期, H_入库单.打印, H_入库单.检验判定, H_入库单.判定结果
FROM H_入库单
WHERE (((H_入库单.入库单号) Like IIf(IsNull([Forms]![TH_入库单资料]![单据号码]),'*',[Forms]![TH_入库单资料]![单据号码])) AND ((H_入库单.审核) Like IIf(IsNull([Forms]![TH_入库单资料]![是否审核]),'*',[Forms]![TH_入库单资料]![是否审核])) AND ((H_入库单.审批) Like IIf(IsNull([Forms]![TH_入库单资料]![是否审批]),'*',[Forms]![TH_入库单资料]![是否审批])) AND ((H_入库单.供应商) Like IIf(IsNull([Forms]![TH_入库单资料]![供应商]),'*',[Forms]![TH_入库单资料]![供应商])) AND ((H_入库单.异动性质) Like IIf(IsNull([Forms]![TH_入库单资料]![异动性质]),'*',[Forms]![TH_入库单资料]![异动性质])) AND ((H_入库单.制单人) Like IIf(IsNull([Forms]![TH_入库单资料]![制单人]),'*',[Forms]![TH_入库单资料]![制单人])) AND ((Format([入库日期],"yyyy/mm/dd")) Between ([Forms]![TH_入库单资料]![年]) And ([Forms]![TH_入库单资料]![年1])));
2024-10-31 08:29:32
2024-10-31 09:46:21
2024-10-31 09:46:45
2024-10-31 09:19:12