D
dthmtlgod
I am creating a online help desk for my office. I am attempting to cleanup
my code and I was hoping for a little advice.
I have 30 different categories of requests ranging from the desktop issues
to application issues. I am using submit buttons on one version and a
dropdown/list box on the other. Both work the same.
All the items have the same name "cmdProblem". The value is then passed to
another form. This all works great.
I then have 30 "if" statements that ask a series of questions. A lot of
them ask the same questions, a few differ though. There is 1,800 lines of
code. Is there an easier way to do this?
PT = request.form("cmdProblem")
<% if ucase(pt) = "MONITOR" then %>
..... Code ....
I do this 30 times.
my code and I was hoping for a little advice.
I have 30 different categories of requests ranging from the desktop issues
to application issues. I am using submit buttons on one version and a
dropdown/list box on the other. Both work the same.
All the items have the same name "cmdProblem". The value is then passed to
another form. This all works great.
I then have 30 "if" statements that ask a series of questions. A lot of
them ask the same questions, a few differ though. There is 1,800 lines of
code. Is there an easier way to do this?
PT = request.form("cmdProblem")
<% if ucase(pt) = "MONITOR" then %>
..... Code ....
I do this 30 times.