order by 是写在后面的。一般应该这样写:
Me.kID.RowSource = " SELECT KID,kh,lxmc,lxdh FROM qrykhb & " WHERE (((lxmc)='销售商' Or (lxmc)='加工厂')) ORDER BY kh"【注意:这里把销售商、加工厂改为单引号了】如果是变量的话,可以这样写【这里去掉了小括号】:
Me.kID.RowSource = " SELECT KID,kh,lxmc,lxdh FROM qrykhb " & " WHERE lxmc='" & me.销售商 & " Or lxmc='" & me.加工厂 &"' ORDER BY kh"
me.销售商 和 me.加工厂 对应窗体中的控件。