<% dept_flag = Request.Querystring ("dept_flag") if (dept_flag = true) Then SQLstr = "SELECT * FROM timecard ORDER BY dept ASC" else SQLstr = "SELECT * FROM timecard" end if %> <a href="TimeCard_HR_period.asp?dept_flag=true">Dept</a>
Don't know what Im doing wrong but when I click on the link, it just flash but not show the of the dept by order ????
I did changed, but it still the same. I will try another way to hand code it Thank you very much for your help
<% dept_flag = CBool(Request.Querystring ("dept_flag"))If dept_flag Then SQLstr = "SELECT * FROM timecard ORDER BY dept ASC" else SQLstr = "SELECT * FROM timecard" end if %> <a href="TimeCard_HR_period.asp?dept_flag=true">Dept</a>