K
ks_reny
Unregistered / Unconfirmed
GUEST, unregistred user!
with adoquery1 do<br> begin<br> close;<br> sql.Clear;<br> sql.Add('select wa_routing,sum(qnty) from tblwipaps ');<br> sql.Add(' where begintime<=:A and endtime>=:B and wa_routing=:C ');<br> sql.Add('group by wa_routing');<br> Parameters.ParamByName('A').Value:=strtodatetime(datetostr(dd.Date)+' '+timetostr(tt.Time));<br> Parameters.ParamByName('B').Value:=strtodatetime(datetostr(aa.Date)+' '+timetostr(bb.Time));<br> Parameters.ParamByName('C').Value:=trim(combobox1.Text);<br> open;<br> end;<br><br>執行時 總是提示"不是一個group by 表達式"<br>不知道哪裡出問題了