sqltext="select * from 表 where 1=1 and BigClassName='"& BigClassName &"'order by vdate desc" if SmallClassName<>"" then sqltext="sqltext & and SmallClassName='"& SmallClassName &"'" end if
if SmallClassName2<>"" then sqltext="sqltext & and SmallClassName2='"& SmallClassName2 &"'" end if