那就留出一个接口,可以选择(DropDownList)或输入(TextBox)单位名称
或单位ID。然后利用输入的值或选择的值生成SQL语句:
strSql="select Count(临时工) as Count1 from table where danwei='" & trim(t.text) & "'"
strSql="select Count(临时工) as Count1 from table where danwei='" & trim(t.selectItem.text) & "'"