I have a form that displays information selected from an Access Data
base. A select statement is used to do this on my asp page
SQLQuery = "SELECT * FROM tblopgaCOm2 WHERE billNo = '"
& Request.Form("B ILLNO") & "' AND area LIKE 'AUDIT'"
billNo and area are the 2 fields used together to make the record we
need unique. example Bill d456(billNo) can be
assigned to various depts(area). as many depts as it is
assigned rep the many times it is used. ie therefore Bill d456
assigned to the audit, finance and Hresources appears 3 times.
Therefore for me to pull the record rep Bill d456 for the audit dept I
have do a select * by billNo and area like "AUDIT" as above.
This infor like I said is displayed in a form so the user also has the
ability to add or update this displayed infor.
Now this is what I want to do,
include an input box(readonly) that is also required to capture the
various dept(area) where the Billno d456 has been assigned.just one
input box that will show me that the same billNo d456 was also assigned
to not just the audit dept but also the finance & humanresource dept. so
the input box will just show the result "audit, finance & Hresource.
How do I get around this .
Is it to have 2 select statements on a page /form??
If that is the answer then how do I go about that
below is my exsisting script.Thanks as always!!!
<%
Set Conn = Server.CreateOb ject("ADODB.Con nection")
Set Rs = Server.CreateOb ject("adodb.Rec ordset")
Conn.Open "eiwp"
SQLQuery = "SELECT * FROM tblopgaCOm2 WHERE billNo = '" &
Request.Form("B ILLNO") & "' AND area LIKE 'AUDIT'"
RS.Open SQLquery, Conn
%>
<table border="0" cellpadding="2" cellspacing="4" width="120%">
<tr>
<td width="100%">
<form method="POST" action="legconf irm.asp" >
<table border="0" cellpadding="2" cellspacing="4" width="121%"
height="172">
<tr>
<td width="20%" bgcolor="#99CCF F" height="36"> <b><font
size="2">ID#:
</font> </b><input type="text" name="Test"
style="backgrou nd-color: #D2D2D2" size="9" value="<%=rs("t est")%>"
readonly></td>
<td width="49%" bgcolor="#99CCF F" height="36"> <b><font
size="2">bill</font>#</b>
<input type="text" name="billNo" style="backgrou nd-color: #D2D2D2"
size="9" value="<%=rs("b illno")%>" readonly></td>
<td width="129%" height="36" bgcolor="#C0C0C 0">
<p align="left"><b ><font color="#000080" ><input type="text"
name="area" style="backgrou nd-color: #D2D2D2; color: #FF0000;
font-weight: bold; text-align: Left" size="8" value="<%=rs("a rea")%>"
readonly></font></b></p>
</td>
<td width="28%" bgcolor="#99CCF F" height="36"><fo nt
size="2"><b>tim e:<input type="text" name="Time" readonly
style="backgrou nd-color: #D2D2D2" size="10"
value="<%=rs("u pddate")%>"></b></font></td>
</table>
</form>
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!