那位大侠帮个忙呀,
![](images/smilies/emot/em13.gif)
![](images/smilies/emot/em13.gif)
set safety off
public mz
public lb
mz=
lb=
DATE1=CTOD(Thisform.TexT1.Value)
DATE2=CTOD(Thisform.TexT2.Value)
if empty(mz) and empty(lb)
select * from spm where between(日期,date1,date2) order by 日期 asc into table lsspm
endif
if empty(mz) and '直达'
select * from spm where between(日期,date1,date2) and 类别=='直达'
order by 日期 asc into table lsspm
endif
if empty(mz) and '下水'
select * from spm where between(日期,date1,date2) and 类别=='下水'
order by 日期 asc into table lsspm
endif
if empty(mz)==.F.
select * from spm where between(日期,date1,date2) and 用户名称==mz
order by 日期 asc into table lsspm
endif
report form spm.frx preview
&& 另外问一下combo1怎么赋值到变量
[此贴子已经被作者于2017-10-9 08:45编辑过]