Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: double query and variables


Message #1 by =?iso-8859-2?Q?Zsoldos_P=E9ter?= <paz@c...> on Mon, 25 Jun 2001 12:06:56 +0200
Hi all, i have a little problem: i have two recordsets in an asp page - 

one for the descriptions and etc., and the other one is for the values 

f the fields. the page is for editing one record. The textfields aren't 

shown in the normal order, as the fields are in the DB. So what I want 

to do is to make something like this: 

<%=rs(variable_which_stores_the_needed_fieldname_in_the_acces_db)%>



is it possible? I tried to do this, but it doesn't work:

-----------------------------------------------------------

<%

Do While(Not k.EOF)

%>

<tr>

<% a = k("fieldnamlist") %>

	<td><%=k("Description")%></td>

	<td><INPUT type="text" onBlur=<%=rs("onBlur")%> NAME="<%=rs

("fieldnamlist")%>" onFocus="promptEntry(this);" size="39" value="<%=rs

(a)%>"></td>

</tr>

<% 

 k.MoveNext

 Loop

 k.Close

 set k = Nothing

%>

--------------------------------------------------------



any idea from anyobdy? please!!!!!!!



 peter


  Return to Index