|
我用access查询里面做了一个查询:
SELECT dbo_clda.车型, dbo_clda.车型编号, dbo_clda.入库时间, dbo_clda.出厂时间, dbo_clda.销售员, dbo_clda.客户名称, dbo_clda.客户邮编, dbo_clda.代理商, dbo_clda.代理商电话, dbo_clda.车架厂, dbo_clda.车架编号, dbo_clda.车身油漆色, dbo_clda.前档玻璃, dbo_clda.遮阳帘, dbo_clda.座椅, dbo_clda.靠背, dbo_clda.扶手, dbo_clda.顶棚、倒雨板, dbo_clda.轮胎、轮辋, dbo_clda.电机, dbo_clda.电机编号, dbo_clda.变速箱、换档, dbo_clda.充电机, dbo_clda.充电即编号, dbo_clda.制动器、总泵, dbo_clda.电控, dbo_clda.电控编号, dbo_clda.传动轴, dbo_clda.雨刮器, dbo_clda.方向机, dbo_clda.倒车蜂鸣器, dbo_clda.前桥及悬挂, dbo_clda.后桥级悬挂, dbo_clda.蓄电池, dbo_clda.音响系统, dbo_clda.仪表级开关, dbo_clda.灯光, dbo_clda.备注
FROM dbo_clda
WHERE (((dbo_clda.车型) Like IIf(IsNull([Forms]![查询]![车型]),'*','*' & [Forms]![查询]![车型] & '*')) AND ((dbo_clda.车型编号) Like IIf(IsNull([Forms]![查询]![车型编号]),'*','*' & [Forms]![查询]![车型编号] & '*')) AND ((dbo_clda.入库时间) Like IIf(IsNull([Forms]![查询]![入库时间]),'*','*' & [Forms]![查询]![入库时间] & '*')) AND ((dbo_clda.出厂时间) Like IIf(IsNull([Forms]![查询]![出厂时间]),'*','*' & [Forms]![查询]![出厂时间] & '*')) AND ((dbo_clda.销售员) Like IIf(IsNull([Forms]![查询]![销售员]),'*','*' & [Forms]![查询]![销售员] & '*')) AND ((dbo_clda.客户名称) Like IIf(IsNull([Forms]![查询]![客户名称]),'*','*' & [Forms]![查询]![客户名称] & '*')) AND ((dbo_clda.客户邮编) Like IIf(IsNull([Forms]![查询]![客户邮编]),'*','*' & [Forms]![查询]![客户邮编] & '*')) AND ((dbo_clda.代理商) Like IIf(IsNull([Forms]![查询]![代理商]),'*','*' & [Forms]![查询]![代理商] & '*')) AND ((dbo_clda.代理商电话) Like IIf(IsNull([Forms]![查询]![代理商电话]),'*','*' & [Forms]![查询]![代理商电话] & '*')) AND ((dbo_clda.车架厂) Like IIf(IsNull([Forms]![查询]![车架厂]),'*','*' & [Forms]![查询]![车架厂] & '*')) AND ((dbo_clda.车架编号) Like IIf(IsNull([Forms]![查询]![车架编号]),'*','*' & [Forms]![查询]![车架编号] & '*')) AND ((dbo_clda.车身油漆色) Like IIf(IsNull([Forms]![查询]![车身油漆色]),'*','*' & [Forms]![查询]![车身油漆色] & '*')) AND ((dbo_clda.前档玻璃) Like IIf(IsNull([Forms]![查询]![前档玻璃]),'*','*' & [Forms]![查询]![前档玻璃] & '*')) AND ((dbo_clda.遮阳帘) Like IIf(IsNull([Forms]![查询]![遮阳帘]),'*','*' & [Forms]![查询]![遮阳帘] & '*')) AND ((dbo_clda.座椅) Like IIf(IsNull([Forms]![查询]![座椅]),'*','*' & [Forms]![查询]![座椅] & '*')) AND ((dbo_clda.靠背) Like IIf(IsNull([Forms]![查询]![靠背]),'*','*' & [Forms]![查询]![靠背] & '*')) AND ((dbo_clda.扶手) Like IIf(IsNull([Forms]![查询]![扶手]),'*','*' & [Forms]![查询]![扶手] & '*')) AND ((dbo_clda.顶棚、倒雨板) Like IIf(IsNull([Forms]![查询]![顶棚、倒雨板]),'*','*' & [Forms]![查询]![顶棚、倒雨板] & '*')) AND ((dbo_clda.轮胎、轮辋) Like IIf(IsNull([Forms]![查询]![轮胎、轮辋]),'*','*' & [Forms]![查询]![轮胎、轮辋] & '*')) AND ((dbo_clda.电机) Like IIf(IsNull([Forms]![查询]![电机]),'*','*' & [Forms]![查询]![电机] & '*')) AND ((dbo_clda.电机编号) Like IIf(IsNull([Forms]![查询]![电机编号]),'*','*' & [Forms]![查询]![电机编号] & '*')) AND ((dbo_clda.变速箱、换档) Like IIf(IsNull([Forms]![查询]![变速箱、换档]),'*','*' & [Forms]![查询]![变速箱、换档] & '*')) AND ((dbo_clda.充电机) Like IIf(IsNull([Forms]![查询]![充电机]),'*','*' & [Forms]![查询]![充电机] & '*')) AND ((dbo_clda.充电即编号) Like IIf(IsNull([Forms]![查询]![充电即编号]),'*','*' & [Forms]![查询]![充电即编号] & '*')) AND ((dbo_clda.制动器、总泵) Like IIf(IsNull([Forms]![查询]![制动器、总泵]),'*','*' & [Forms]![查询]![制动器、总泵] & '*')) AND ((dbo_clda.电控) Like IIf(IsNull([Forms]![查询]![电控]),'*','*' & [Forms]![查询]![电控] & '*')) AND ((dbo_clda.电控编号) Like IIf(IsNull([Forms]![查询]![电控编号]),'*','*' & [Forms]![查询]![电控编号] & '*')) AND ((dbo_clda.传动轴) Like IIf(IsNull([Forms]![查询]![传动轴]),'*','*' & [Forms]![查询]![传动轴] & '*')) AND ((dbo_clda.雨刮器) Like IIf(IsNull([Forms]![查询]![雨刮器]),'*','*' & [Forms]![查询]![雨刮器] & '*')) AND ((dbo_clda.方向机) Like IIf(IsNull([Forms]![查询]![方向机]),'*','*' & [Forms]![查询]![方向机] & '*')) AND ((dbo_clda.倒车蜂鸣器) Like IIf(I |
|