Access交流中心

北京 | 上海 | 天津 | 重庆 | 广州 | 深圳 | 珠海 | 汕头 | 佛山 | 中山 | 东莞 | 南京 | 苏州 | 无锡 | 常州 | 南通 | 扬州 | 徐州 | 杭州 | 温州 | 宁波 | 台州 | 福州 | 厦门 | 泉州 | 龙岩 | 合肥 | 芜湖 | 成都 | 遂宁 | 长沙 | 株洲 | 湘潭 | 武汉 | 南昌 | 济南 | 青岛 | 烟台 | 潍坊 | 淄博 | 济宁 | 太原 | 郑州 | 石家庄 | 保定 | 唐山 | 西安 | 大连 | 沈阳 | 长春 | 昆明 | 兰州 | 哈尔滨 | 佳木斯 | 南宁 | 桂林 | 海口 | 贵阳 | 西宁 | 乌鲁木齐 | 包头 |

用SQL 取代 loop structures

Emilie  发表于:2014-07-06 08:47:31  
复制

各位好!求帮助。如何用SQL 取代 下面loop structures


If (Order_rst![Order Number] = Order_Number.Value) Then

If Order_rst.Fields("Product Code") = Product_rst.Fields("Product Code") Then

If Customer_rst.Fields("Customer Number") = Customer_Number.Value Then
If Val(Customer_rst.Fields("Customer Category")) >= Val(Product_rst.Fields("Product Category")) Then
CheckCC = True 'update the flag to indicate customer is allowed to order the item

 

Top
总记录:0篇  页次:0/0 9 1 :