Basicly for my college project I have to build a job sheet DB system.
To stop repeating data, I am using StaffID's and ClientID's
I need to display a list of jobs, however needs to say the clients name, not their ID, and the same with the Staff.
To make things a bit more tricky, its all done through ASP (which im also new too!)
Upto now ive got this:
<table border="0" align="center" rules="rows"><b>
<tr align="left">
<th width="50"><font color="#ff0000">Job</th>
<th width="150"><font color="#ff0000">Client</th>
<th width="150"><font color="#ff0000">Caller</th>
<th width="150"><font color="#ff0000">TakenBy</th>
<th width="100"><font color="#ff0000">DateCreated</th>
<th width="100"><font color="#ff0000">TimeCreated</th>
<th width="100"><font color="#ff0000">Status</th>
<th width="400"><font color="#ff0000">Description</th>
</tr></b></font>
<%
Set RSDisplay=Server.CreateObject("ADODB.Recordset")
SQL="
SELECT * FROM Job INNER JOIN Client ON Job.ClientID = Client.ClientID"
RSDisplay.Open SQL,db
Do While Not RSDisplay.EOF %>
<tr valign="top">
<td><%=RSDisplay.Fields("JobNo")%></td>
<td><%=RSDisplay.Fields("Title")%> <%=RSDisplay.Fields("FirstName")%> <%=RSDisplay.Fields("LastName")%></td>
<td><%=RSDisplay.Fields("CallerID")%></td>
<td><%=RSDisplay.Fields("TakenBy")%></td>
<td><%=RSDisplay.Fields("DateCreated")%></td>
<td><%=RSDisplay.Fields("TimeCreated")%></td>
<td><%=RSDisplay.Fields("StatusID")%></td>
<td><%=RSDisplay.Fields("Description")%></td>
</tr>
<% RSDisplay.MoveNext
Loop
db.close
%>
As it stands, It will now display the clients name (not its ID) and I need to get the staff one to do the same.
Any ideas as im stuck
