Thanks! I would have never figured that out in a million years!! Naturally, this is not documented in any of the milions of vb and asp books I have! It works. Now I have a new problem. The case statement doesn't seem to work with it. No matter what I do, the variables that get loaded to the form fields are always the last ones on the case statement. Here's my code:
Select Case whichgrid
Case "wg1"
'First Day of the month is Sunday
<%G1="1"
G2="2"
G3="3"
G4="4"
G5="5"
G6="6"
G7="7"%>
Case "wg2"
'First day of the month is Monday
<%G1="n/a"
G2="1"
G3="2"
G4="3"
G5="4"
G6="5"
G7="6"%>
Case "wg3"
'First day of the month is Tuesday
<%G1="n/a"
G2="n/a"
G3="1"
G4="2"
G5="3"
G6="4"
G7="5"
G8="6"%>
etc. etc. etc....
End Select
<input type="text" name="G1" size="3" value="<%=G1%>">
<input type="text" name="G2" size="3" value="<%=G2%>">
<input type="text" name="G3" size="3" value="<%=G3%>">
<input type="text" name="G4" size="3" value="<%=G4%>">
<input type="text" name="G5" size="3" value="<%=G5%>">
<input type="text" name="G6" size="3" value="<%=G6%>">
<input type="text" name="G7" size="3" value="<%=G7%>">
<input type="text" name="G8" size="3" value="<%=G8%>">
If I put the brackets <% %> around only one case statement, for example Monday, it puts the Monday variables in the right form fields, but the minute I put the brackets in each of the case situations as above, it "falls through" and always inputs the last case situation variables to the form field boxes. In this case, n/a, n/a, 1,2,3,4,5,6
Into the G1 to G8 form fields.
Now what?...
Thanks again! At least now I've advanced to a different problem....
-Maria