Hey,
Sorry no url, this is published on an intranet site.
I'll try to explain it better.
Page one (the form page)
there is a form on this page with two drop down boxes, one
is for the plant, and the other is for the year. the two
values are submitted to another page, called view.asp.
Page two (the view page)
On this page there is a table that displays a bunch of
different things, one being the budgets for this year and
last year. The budget recordset is objBU. Right now
there is a line of code (in a while not objBU.EOF loop)
that is response.write objBU("2003"). That displays 8
values (one value each time it goes through the loop). I
will make a new database column named 2004. The table
would be correct if i were to hard code 2004 into it, objBU
("2004") and objBU("2003") (the 2003 is in there now for
the past year, i had 2002 hard coded in last year).
However the table would not be correct if the user wants
to view the table from last year, because the budgets will
be from 2004 and 2003 instead of 2003 and 2002. The page
needs to have the budgets displayed based on the year
chosen on the previous form page. ex, if the user chooses
the year 2003, the view.asp page will display the budgets
for year 2003 and also show the budgets from 2002, ex, if
the user chooses year 2004, then the view.asp page will
display budgets from year 2004 and also show (just for
comparison) the budgets from 2003. So what i need is a
way to insert the year value from the form into the
response.write objBU("Requested From Form") code.
Does this help at all? I can try to explain it again
otherwise..
Thanks,
Matt Shudy