Forums
This topic is locked
Why cant I use it more than once.
12 Nov 2002 01:04:44 Head Mr. posted:
if i try to <%=(Recordset1.Fields.Item("FeaturedBandID"

or any other such query, it will only go thru the first time? and idea why?
it wouldnt be a problem except i have a menu that needs to select the current variable when editing.. and none of the selects are going thru except for the first one:
<option value="January" <%If (Recordset1.Fields.Item("FMonth"




<option value="Febuary" <%If (Recordset1.Fields.Item("FMonth"




<option value="March" <%If (Recordset1.Fields.Item("FMonth"




<option value="April" <%If (Recordset1.Fields.Item("FMonth"




<option value="May" <%If (Recordset1.Fields.Item("FMonth"




<option value="June" <%If (Recordset1.Fields.Item("FMonth"




The selected only shows up if it meet's it's JANUARY.
-I am beyond the line of Morality and therefore, beyond caring.
Replies
Replied 12 Nov 2002 01:26:49
12 Nov 2002 01:26:49 Head Mr. replied:
well.. i found a work around, converting it to a variable. but still not the easiest way.
-I am beyond the line of Morality and therefore, beyond caring.
-I am beyond the line of Morality and therefore, beyond caring.
Replied 12 Nov 2002 02:36:09
12 Nov 2002 02:36:09 Owen Eastwick replied:
If you are using a recordset field value on a page more than once it's good practice to store it in a variable. Once stored in a variable it can be referenced quicker and improve the performance of the page. This goes for other Request objects too, Request.QueryString, Request.Form etc.
The horses mouth: msdn.microsoft.com/library/default.asp?url=/library/en-us/dnasp/html/asptips.asp
Regards
Owen.
Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo
The horses mouth: msdn.microsoft.com/library/default.asp?url=/library/en-us/dnasp/html/asptips.asp
Regards
Owen.
Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo