Dim SQL as string ="sSelect" & Top & "i1.f1,i2.f2" & sselect &
"from table1 i1 inner join table i2 on i1.eventseriesID=i2.eventseriesID " & Sjoin &
& " where i1.binheritseries=1 "
if where <>"" then
SQL &="order By" & OrderBy
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)