I hope you don't mind me responding with a non-answer ( some people may now not look at the post because there is already a reply) but I just thought I'd mention that your code
Code:
if strQuery <> "" then
select case strQuery
case "Last"
rs.Open sql, conn
case "First"
rs.Open sql, conn
case "Email"
rs.Open sql, conn
case "DateAdded"
rs.Open sql, conn
case "Reviewed"
rs.Open sql, conn
case "Actv"
rs.Open sql, conn
case "Email"
rs.Open sql, conn
end select
end if
can be shortened to
Code:
if strQuery <> "" then
select case strQuery
case "Last", "First", "Email", "DateAdded", "Reviewed", "Actv", "Email"
rs.Open sql, conn
end select
end if
or even
Code:
if strQuery <> "" rs.Open Then
sql, conn
end if
if there are no values that you want to exclude other than spaces.