Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi, I have a strange behaviour,

Status
Not open for further replies.

sanjs

Technical User
Mar 2, 2003
28
0
0
GB
Hi,

I have a strange behaviour, I have passed this to a detail.asp page:



On the Detail page I have a recordset:

SELECT *
FROM quotes
WHERE username = 'MMColParam'
ORDER BY date_entry

I show a few of the quote details and also the quotenum (which is unique and
is the Primary Key in the table)

I have applied a update to the form that include notes text area, but when
applied the information is applied to another record entry usually a number
less than being shown, am I doing something wrong?

Thanks,

Sanjay
 
Could you resubmit the code portion of your post above with some tgml code tags around it? I have a suspicion on what the problem may be but could be wrong.

-Tarwn

[sub]01010100 01101001 01100101 01110010 01101110 01101111 01101011 00101110 01100011 01101111 01101101 [/sub]
[sup]29 3K 10 3D 3L 3J 3K 10 32 35 10 3E 39 33 35 10 3K 3F 10 38 31 3M 35 10 36 3I 35 35 10 3K 39 3D 35 10 1Q 19[/sup]
Get better results for your questions: faq333-2924
Frequently Asked ASP Questions: faq333-3048
 
Tarwan,

Here's the submit code:

<form name=&quot;form1&quot; method=&quot;POST&quot; action=&quot;<%=MM_editAction%>&quot;>

The MM_editAction is:
<%
' *** Update Record: set variables

If (CStr(Request(&quot;MM_update&quot;)) = &quot;form1&quot; And CStr(Request(&quot;MM_recordId&quot;)) <> &quot;&quot;) Then

MM_editConnection = MM_login_STRING
MM_editTable = &quot;quotes&quot;
MM_editColumn = &quot;quotenum&quot;
MM_recordId = &quot;&quot; + Request.Form(&quot;MM_recordId&quot;) + &quot;&quot;
MM_editRedirectUrl = &quot;detail.asp&quot;
MM_fieldsStr = &quot;notes|value&quot;
MM_columnsStr = &quot;notes|',none,''&quot;

' create the MM_fields and MM_columns arrays
MM_fields = Split(MM_fieldsStr, &quot;|&quot;)
MM_columns = Split(MM_columnsStr, &quot;|&quot;)

' set the form values
For MM_i = LBound(MM_fields) To UBound(MM_fields) Step 2
MM_fields(MM_i+1) = CStr(Request.Form(MM_fields(MM_i)))
Next

' append the query string to the redirect URL
If (MM_editRedirectUrl <> &quot;&quot; And Request.QueryString <> &quot;&quot;) Then
If (InStr(1, MM_editRedirectUrl, &quot;?&quot;, vbTextCompare) = 0 And Request.QueryString <> &quot;&quot;) Then
MM_editRedirectUrl = MM_editRedirectUrl & &quot;?&quot; & Request.QueryString
Else
MM_editRedirectUrl = MM_editRedirectUrl & &quot;&&quot; & Request.QueryString
End If
End If

End If
%>
<%
' *** Update Record: construct a sql update statement and execute it

If (CStr(Request(&quot;MM_update&quot;)) <> &quot;&quot; And CStr(Request(&quot;MM_recordId&quot;)) <> &quot;&quot;) Then

' create the sql update statement
MM_editQuery = &quot;update &quot; & MM_editTable & &quot; set &quot;
For MM_i = LBound(MM_fields) To UBound(MM_fields) Step 2
MM_formVal = MM_fields(MM_i+1)
MM_typeArray = Split(MM_columns(MM_i+1),&quot;,&quot;)
MM_delim = MM_typeArray(0)
If (MM_delim = &quot;none&quot;) Then MM_delim = &quot;&quot;
MM_altVal = MM_typeArray(1)
If (MM_altVal = &quot;none&quot;) Then MM_altVal = &quot;&quot;
MM_emptyVal = MM_typeArray(2)
If (MM_emptyVal = &quot;none&quot;) Then MM_emptyVal = &quot;&quot;
If (MM_formVal = &quot;&quot;) Then
MM_formVal = MM_emptyVal
Else
If (MM_altVal <> &quot;&quot;) Then
MM_formVal = MM_altVal
ElseIf (MM_delim = &quot;'&quot;) Then ' escape quotes
MM_formVal = &quot;'&quot; & Replace(MM_formVal,&quot;'&quot;,&quot;''&quot;) & &quot;'&quot;
Else
MM_formVal = MM_delim + MM_formVal + MM_delim
End If
End If
If (MM_i <> LBound(MM_fields)) Then
MM_editQuery = MM_editQuery & &quot;,&quot;
End If
MM_editQuery = MM_editQuery & MM_columns(MM_i) & &quot; = &quot; & MM_formVal
Next
MM_editQuery = MM_editQuery & &quot; where &quot; & MM_editColumn & &quot; = &quot; & MM_recordId

If (Not MM_abortEdit) Then
' execute the update
Set MM_editCmd = Server.CreateObject(&quot;ADODB.Command&quot;)
MM_editCmd.ActiveConnection = MM_editConnection
MM_editCmd.CommandText = MM_editQuery
MM_editCmd.Execute
MM_editCmd.ActiveConnection.Close

If (MM_editRedirectUrl <> &quot;&quot;) Then
Response.Redirect(MM_editRedirectUrl)
End If
End If

End If
%>

Also, the last record does not show it comes up with an error that it has been deleted.

Thanks, let me know if this is not the correct code.

Sanjay
 
How do you tell it what record you are updating? Do you say Update this table where recid = recid

Can I see the whole page so I can see what you are trying to do?
 
Hi lesleint,

Here's the full code for the page:

<%@LANGUAGE=&quot;VBSCRIPT&quot; CODEPAGE=&quot;1252&quot;%>
<!--#include file=&quot;Connections/login.asp&quot; -->
<%
' *** Edit Operations: declare variables

Dim MM_editAction
Dim MM_abortEdit
Dim MM_editQuery
Dim MM_editCmd

Dim MM_editConnection
Dim MM_editTable
Dim MM_editRedirectUrl
Dim MM_editColumn
Dim MM_recordId

Dim MM_fieldsStr
Dim MM_columnsStr
Dim MM_fields
Dim MM_columns
Dim MM_typeArray
Dim MM_formVal
Dim MM_delim
Dim MM_altVal
Dim MM_emptyVal
Dim MM_i

MM_editAction = CStr(Request.ServerVariables(&quot;SCRIPT_NAME&quot;))
If (Request.QueryString <> &quot;&quot;) Then
MM_editAction = MM_editAction & &quot;?&quot; & Request.QueryString
End If

' boolean to abort record edit
MM_abortEdit = false

' query string to execute
MM_editQuery = &quot;&quot;
%>
<%
' *** Update Record: set variables

If (CStr(Request(&quot;MM_update&quot;)) = &quot;form1&quot; And CStr(Request(&quot;MM_recordId&quot;)) <> &quot;&quot;) Then

MM_editConnection = MM_login_STRING
MM_editTable = &quot;quotes&quot;
MM_editColumn = &quot;quotenum&quot;
MM_recordId = &quot;&quot; + Request.Form(&quot;MM_recordId&quot;) + &quot;&quot;
MM_editRedirectUrl = &quot;detail.asp&quot;
MM_fieldsStr = &quot;notes|value&quot;
MM_columnsStr = &quot;notes|',none,''&quot;

' create the MM_fields and MM_columns arrays
MM_fields = Split(MM_fieldsStr, &quot;|&quot;)
MM_columns = Split(MM_columnsStr, &quot;|&quot;)

' set the form values
For MM_i = LBound(MM_fields) To UBound(MM_fields) Step 2
MM_fields(MM_i+1) = CStr(Request.Form(MM_fields(MM_i)))
Next

' append the query string to the redirect URL
If (MM_editRedirectUrl <> &quot;&quot; And Request.QueryString <> &quot;&quot;) Then
If (InStr(1, MM_editRedirectUrl, &quot;?&quot;, vbTextCompare) = 0 And Request.QueryString <> &quot;&quot;) Then
MM_editRedirectUrl = MM_editRedirectUrl & &quot;?&quot; & Request.QueryString
Else
MM_editRedirectUrl = MM_editRedirectUrl & &quot;&&quot; & Request.QueryString
End If
End If

End If
%>
<%
' *** Update Record: construct a sql update statement and execute it

If (CStr(Request(&quot;MM_update&quot;)) <> &quot;&quot; And CStr(Request(&quot;MM_recordId&quot;)) <> &quot;&quot;) Then

' create the sql update statement
MM_editQuery = &quot;update &quot; & MM_editTable & &quot; set &quot;
For MM_i = LBound(MM_fields) To UBound(MM_fields) Step 2
MM_formVal = MM_fields(MM_i+1)
MM_typeArray = Split(MM_columns(MM_i+1),&quot;,&quot;)
MM_delim = MM_typeArray(0)
If (MM_delim = &quot;none&quot;) Then MM_delim = &quot;&quot;
MM_altVal = MM_typeArray(1)
If (MM_altVal = &quot;none&quot;) Then MM_altVal = &quot;&quot;
MM_emptyVal = MM_typeArray(2)
If (MM_emptyVal = &quot;none&quot;) Then MM_emptyVal = &quot;&quot;
If (MM_formVal = &quot;&quot;) Then
MM_formVal = MM_emptyVal
Else
If (MM_altVal <> &quot;&quot;) Then
MM_formVal = MM_altVal
ElseIf (MM_delim = &quot;'&quot;) Then ' escape quotes
MM_formVal = &quot;'&quot; & Replace(MM_formVal,&quot;'&quot;,&quot;''&quot;) & &quot;'&quot;
Else
MM_formVal = MM_delim + MM_formVal + MM_delim
End If
End If
If (MM_i <> LBound(MM_fields)) Then
MM_editQuery = MM_editQuery & &quot;,&quot;
End If
MM_editQuery = MM_editQuery & MM_columns(MM_i) & &quot; = &quot; & MM_formVal
Next
MM_editQuery = MM_editQuery & &quot; where &quot; & MM_editColumn & &quot; = &quot; & MM_recordId

If (Not MM_abortEdit) Then
' execute the update
Set MM_editCmd = Server.CreateObject(&quot;ADODB.Command&quot;)
MM_editCmd.ActiveConnection = MM_editConnection
MM_editCmd.CommandText = MM_editQuery
MM_editCmd.Execute
MM_editCmd.ActiveConnection.Close

If (MM_editRedirectUrl <> &quot;&quot;) Then
Response.Redirect(MM_editRedirectUrl)
End If
End If

End If
%>
<%
Dim Recordset1__MMColParam
Recordset1__MMColParam = &quot;a&quot;
If (Request.QueryString(&quot;Username&quot;) <> &quot;&quot;) Then
Recordset1__MMColParam = Request.QueryString(&quot;Username&quot;)
End If
%>
<%
Dim Recordset1
Dim Recordset1_numRows

Set Recordset1 = Server.CreateObject(&quot;ADODB.Recordset&quot;)
Recordset1.ActiveConnection = MM_login_STRING
Recordset1.Source = &quot;SELECT * FROM quotes WHERE username = '&quot; + Replace(Recordset1__MMColParam, &quot;'&quot;, &quot;''&quot;) + &quot;' ORDER BY date_entry&quot;
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 1
Recordset1.Open()

Recordset1_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index

Repeat1__numRows = 1
Repeat1__index = 0
Recordset1_numRows = Recordset1_numRows + Repeat1__numRows
%>
<%
' *** Recordset Stats, Move To Record, and Go To Record: declare stats variables

Dim Recordset1_total
Dim Recordset1_first
Dim Recordset1_last

' set the record count
Recordset1_total = Recordset1.RecordCount

' set the number of rows displayed on this page
If (Recordset1_numRows < 0) Then
Recordset1_numRows = Recordset1_total
Elseif (Recordset1_numRows = 0) Then
Recordset1_numRows = 1
End If

' set the first and last displayed record
Recordset1_first = 1
Recordset1_last = Recordset1_first + Recordset1_numRows - 1

' if we have the correct record count, check the other stats
If (Recordset1_total <> -1) Then
If (Recordset1_first > Recordset1_total) Then
Recordset1_first = Recordset1_total
End If
If (Recordset1_last > Recordset1_total) Then
Recordset1_last = Recordset1_total
End If
If (Recordset1_numRows > Recordset1_total) Then
Recordset1_numRows = Recordset1_total
End If
End If
%>
<%
' *** Recordset Stats: if we don't know the record count, manually count them

If (Recordset1_total = -1) Then

' count the total records by iterating through the recordset
Recordset1_total=0
While (Not Recordset1.EOF)
Recordset1_total = Recordset1_total + 1
Recordset1.MoveNext
Wend

' reset the cursor to the beginning
If (Recordset1.CursorType > 0) Then
Recordset1.MoveFirst
Else
Recordset1.Requery
End If

' set the number of rows displayed on this page
If (Recordset1_numRows < 0 Or Recordset1_numRows > Recordset1_total) Then
Recordset1_numRows = Recordset1_total
End If

' set the first and last displayed record
Recordset1_first = 1
Recordset1_last = Recordset1_first + Recordset1_numRows - 1

If (Recordset1_first > Recordset1_total) Then
Recordset1_first = Recordset1_total
End If
If (Recordset1_last > Recordset1_total) Then
Recordset1_last = Recordset1_total
End If

End If
%>
<%
Dim MM_paramName
%>
<%
' *** Move To Record and Go To Record: declare variables

Dim MM_rs
Dim MM_rsCount
Dim MM_size
Dim MM_uniqueCol
Dim MM_offset
Dim MM_atTotal
Dim MM_paramIsDefined

Dim MM_param
Dim MM_index

Set MM_rs = Recordset1
MM_rsCount = Recordset1_total
MM_size = Recordset1_numRows
MM_uniqueCol = &quot;&quot;
MM_paramName = &quot;&quot;
MM_offset = 0
MM_atTotal = false
MM_paramIsDefined = false
If (MM_paramName <> &quot;&quot;) Then
MM_paramIsDefined = (Request.QueryString(MM_paramName) <> &quot;&quot;)
End If
%>
<%
' *** Move To Record: handle 'index' or 'offset' parameter

if (Not MM_paramIsDefined And MM_rsCount <> 0) then

' use index parameter if defined, otherwise use offset parameter
MM_param = Request.QueryString(&quot;index&quot;)
If (MM_param = &quot;&quot;) Then
MM_param = Request.QueryString(&quot;offset&quot;)
End If
If (MM_param <> &quot;&quot;) Then
MM_offset = Int(MM_param)
End If

' if we have a record count, check if we are past the end of the recordset
If (MM_rsCount <> -1) Then
If (MM_offset >= MM_rsCount Or MM_offset = -1) Then ' past end or move last
If ((MM_rsCount Mod MM_size) > 0) Then ' last page not a full repeat region
MM_offset = MM_rsCount - (MM_rsCount Mod MM_size)
Else
MM_offset = MM_rsCount - MM_size
End If
End If
End If

' move the cursor to the selected record
MM_index = 0
While ((Not MM_rs.EOF) And (MM_index < MM_offset Or MM_offset = -1))
MM_rs.MoveNext
MM_index = MM_index + 1
Wend
If (MM_rs.EOF) Then
MM_offset = MM_index ' set MM_offset to the last possible record
End If

End If
%>
<%
' *** Move To Record: if we dont know the record count, check the display range

If (MM_rsCount = -1) Then

' walk to the end of the display range for this page
MM_index = MM_offset
While (Not MM_rs.EOF And (MM_size < 0 Or MM_index < MM_offset + MM_size))
MM_rs.MoveNext
MM_index = MM_index + 1
Wend

' if we walked off the end of the recordset, set MM_rsCount and MM_size
If (MM_rs.EOF) Then
MM_rsCount = MM_index
If (MM_size < 0 Or MM_size > MM_rsCount) Then
MM_size = MM_rsCount
End If
End If

' if we walked off the end, set the offset based on page size
If (MM_rs.EOF And Not MM_paramIsDefined) Then
If (MM_offset > MM_rsCount - MM_size Or MM_offset = -1) Then
If ((MM_rsCount Mod MM_size) > 0) Then
MM_offset = MM_rsCount - (MM_rsCount Mod MM_size)
Else
MM_offset = MM_rsCount - MM_size
End If
End If
End If

' reset the cursor to the beginning
If (MM_rs.CursorType > 0) Then
MM_rs.MoveFirst
Else
MM_rs.Requery
End If

' move the cursor to the selected record
MM_index = 0
While (Not MM_rs.EOF And MM_index < MM_offset)
MM_rs.MoveNext
MM_index = MM_index + 1
Wend
End If
%>
<%
' *** Move To Record: update recordset stats

' set the first and last displayed record
Recordset1_first = MM_offset + 1
Recordset1_last = MM_offset + MM_size

If (MM_rsCount <> -1) Then
If (Recordset1_first > MM_rsCount) Then
Recordset1_first = MM_rsCount
End If
If (Recordset1_last > MM_rsCount) Then
Recordset1_last = MM_rsCount
End If
End If

' set the boolean used by hide region to check if we are on the last record
MM_atTotal = (MM_rsCount <> -1 And MM_offset + MM_size >= MM_rsCount)
%>
<%
' *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters

Dim MM_keepNone
Dim MM_keepURL
Dim MM_keepForm
Dim MM_keepBoth

Dim MM_removeList
Dim MM_item
Dim MM_nextItem

' create the list of parameters which should not be maintained
MM_removeList = &quot;&index=&quot;
If (MM_paramName <> &quot;&quot;) Then
MM_removeList = MM_removeList & &quot;&&quot; & MM_paramName & &quot;=&quot;
End If

MM_keepURL=&quot;&quot;
MM_keepForm=&quot;&quot;
MM_keepBoth=&quot;&quot;
MM_keepNone=&quot;&quot;

' add the URL parameters to the MM_keepURL string
For Each MM_item In Request.QueryString
MM_nextItem = &quot;&&quot; & MM_item & &quot;=&quot;
If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then
MM_keepURL = MM_keepURL & MM_nextItem & Server.URLencode(Request.QueryString(MM_item))
End If
Next

' add the Form variables to the MM_keepForm string
For Each MM_item In Request.Form
MM_nextItem = &quot;&&quot; & MM_item & &quot;=&quot;
If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then
MM_keepForm = MM_keepForm & MM_nextItem & Server.URLencode(Request.Form(MM_item))
End If
Next

' create the Form + URL string and remove the intial '&' from each of the strings
MM_keepBoth = MM_keepURL & MM_keepForm
If (MM_keepBoth <> &quot;&quot;) Then
MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1)
End If
If (MM_keepURL <> &quot;&quot;) Then
MM_keepURL = Right(MM_keepURL, Len(MM_keepURL) - 1)
End If
If (MM_keepForm <> &quot;&quot;) Then
MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1)
End If

' a utility function used for adding additional parameters to these strings
Function MM_joinChar(firstItem)
If (firstItem <> &quot;&quot;) Then
MM_joinChar = &quot;&&quot;
Else
MM_joinChar = &quot;&quot;
End If
End Function
%>
<%
' *** Move To Record: set the strings for the first, last, next, and previous links

Dim MM_keepMove
Dim MM_moveParam
Dim MM_moveFirst
Dim MM_moveLast
Dim MM_moveNext
Dim MM_movePrev

Dim MM_urlStr
Dim MM_paramList
Dim MM_paramIndex
Dim MM_nextParam

MM_keepMove = MM_keepBoth
MM_moveParam = &quot;index&quot;

' if the page has a repeated region, remove 'offset' from the maintained parameters
If (MM_size > 1) Then
MM_moveParam = &quot;offset&quot;
If (MM_keepMove <> &quot;&quot;) Then
MM_paramList = Split(MM_keepMove, &quot;&&quot;)
MM_keepMove = &quot;&quot;
For MM_paramIndex = 0 To UBound(MM_paramList)
MM_nextParam = Left(MM_paramList(MM_paramIndex), InStr(MM_paramList(MM_paramIndex),&quot;=&quot;) - 1)
If (StrComp(MM_nextParam,MM_moveParam,1) <> 0) Then
MM_keepMove = MM_keepMove & &quot;&&quot; & MM_paramList(MM_paramIndex)
End If
Next
If (MM_keepMove <> &quot;&quot;) Then
MM_keepMove = Right(MM_keepMove, Len(MM_keepMove) - 1)
End If
End If
End If

' set the strings for the move to links
If (MM_keepMove <> &quot;&quot;) Then
MM_keepMove = MM_keepMove & &quot;&&quot;
End If

MM_urlStr = Request.ServerVariables(&quot;URL&quot;) & &quot;?&quot; & MM_keepMove & MM_moveParam & &quot;=&quot;

MM_moveFirst = MM_urlStr & &quot;0&quot;
MM_moveLast = MM_urlStr & &quot;-1&quot;
MM_moveNext = MM_urlStr & CStr(MM_offset + MM_size)
If (MM_offset - MM_size < 0) Then
MM_movePrev = MM_urlStr & &quot;0&quot;
Else
MM_movePrev = MM_urlStr & CStr(MM_offset - MM_size)
End If
%>
<html>
<head>
<title>Quote Details</title>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot;>
<script language=&quot;JavaScript&quot;>
function breadCrumbs(base,delStr,defp,cStyle,tStyle,dStyle,nl) { // by Paul Davis - loc=window.location.toString();subs=loc.substr(loc.indexOf(base)+base.length+1).split(&quot;/&quot;);
document.write('<a href=&quot;'+getLoc(subs.length-1)+defp+'&quot; class=&quot;'+cStyle+'&quot;>Home</a> '+'<span class=&quot;'+dStyle+'&quot;>'+delStr+'</span> ');
a=(loc.indexOf(defp)==-1)?1:2;for (i=0;i<(subs.length-a);i++) { subs=makeCaps(unescape(subs));
document.write('<a href=&quot;'+getLoc(subs.length-i-2)+defp+'&quot; class=&quot;'+cStyle+'&quot;>'+subs+'</a> '+'<span class=&quot;'+dStyle+'&quot;>'+delStr+'</span> ');}
if (nl==1) document.write(&quot;<br>&quot;);document.write('<span class=&quot;'+tStyle+'&quot;>'+document.title+'</span>');
}
function makeCaps(a) {
g=a.split(' ');for (l=0;l<g.length;l++) g[l]=g[l].toUpperCase().slice(0,1)+g[l].slice(1);
return g.join(&quot; &quot;);
}
function getLoc(c) {
var d=&quot;&quot;;if (c>0) for (k=0;k<c;k++) d=d+&quot;../&quot;; return d;
}
</script>
</head>

<body background=&quot;images/bk.gif&quot; leftmargin=&quot;0&quot; topmargin=&quot;0&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot;>

<p><img src=&quot;images/adminheader.jpg&quot; width=&quot;780&quot; height=&quot;45&quot;></p>
<p>
<font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;></font></p>
<form name=&quot;form1&quot; method=&quot;POST&quot; action=&quot;<%=MM_editAction%>&quot;>
<p><font size=&quot;3&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;><strong>Quote
Details:</strong></font></p>
<p><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>Total Quotes in
system for user: <%=(Recordset1_total)%></font></p>
<table width=&quot;720&quot;>
<tr>
<td bgcolor=&quot;#aaaaaa&quot;>
<%
While ((Repeat1__numRows <> 0) AND (NOT Recordset1.EOF))
%>
<table width=&quot;100%&quot; border=&quot;0&quot; cellpadding=&quot;1&quot; cellspacing=&quot;1&quot;>
<tr>
<td height=&quot;33&quot; colspan=&quot;5&quot; bgcolor=&quot;#eeeeee&quot;><font size=&quot;4&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>Quote
Records</font></td>
</tr>
<tr>
<td width=&quot;12%&quot; height=&quot;28&quot; bgcolor=&quot;#ccddee&quot;><p><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>Headings</font></p></td>
<td width=&quot;34%&quot; bgcolor=&quot;#ccddee&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>&nbsp;Quote
No.
<input name=&quot;quotenum&quot; type=&quot;text&quot; id=&quot;quotenum&quot; value=&quot;<%=(Recordset1.Fields.Item(&quot;quotenum&quot;).Value)%>&quot;>
</font></td>
<td width=&quot;27%&quot; bgcolor=&quot;#ccddee&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>&nbsp;</font></td>
<td width=&quot;19%&quot; bgcolor=&quot;#ccddee&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>&nbsp;</font></td>
<td width=&quot;8%&quot; bgcolor=&quot;#ccddee&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>&nbsp;</font></td>
</tr>
<tr>
<td bgcolor=&quot;#000066&quot;><font color=&quot;#FFFFFF&quot; size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;><strong>Quote
No.</strong></font></td>
<td bgcolor=&quot;#ffffff&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>&nbsp;</font></td>
<td bgcolor=&quot;#ffffff&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>&nbsp;</font></td>
<td bgcolor=&quot;#ffffff&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>&nbsp;</font></td>
<td bgcolor=&quot;#ffffff&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>&nbsp;</font></td>
</tr>
<tr>
<td bgcolor=&quot;#000066&quot;><font color=&quot;#FFFFFF&quot;>Quote Date Entered</font></td>
<td bgcolor=&quot;#eeeeee&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>&nbsp;<%=(Recordset1.Fields.Item(&quot;date_entry&quot;).Value)%></font></td>
<td bgcolor=&quot;#eeeeee&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>&nbsp;
</font></td>
<td bgcolor=&quot;#eeeeee&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>&nbsp;</font></td>
<td bgcolor=&quot;#eeeeee&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>&nbsp;</font></td>
</tr>
<tr>
<td bgcolor=&quot;#000066&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>&nbsp;</font></td>
<td bgcolor=&quot;#ffffff&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>&nbsp;</font></td>
<td bgcolor=&quot;#ffffff&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>&nbsp;</font></td>
<td bgcolor=&quot;#ffffff&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>&nbsp;</font></td>
<td bgcolor=&quot;#ffffff&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>&nbsp;</font></td>
</tr>
<tr>
<td bgcolor=&quot;#000066&quot;><font color=&quot;#FFFFFF&quot; size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>No.
Of Outlets</font></td>
<td bgcolor=&quot;#eeeeee&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>&nbsp;<%=(Recordset1.Fields.Item(&quot;outlets&quot;).Value)%></font></td>
<td bgcolor=&quot;#eeeeee&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>&nbsp;</font></td>
<td bgcolor=&quot;#eeeeee&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>&nbsp;</font></td>
<td bgcolor=&quot;#eeeeee&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>&nbsp;</font></td>
</tr>
<tr>
<td bgcolor=&quot;#000066&quot;><font color=&quot;#FFFFFF&quot; size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>&nbsp;</font></td>
<td bgcolor=&quot;#ffffff&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>&nbsp;</font></td>
<td bgcolor=&quot;#ffffff&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>&nbsp;</font></td>
<td bgcolor=&quot;#ffffff&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>&nbsp;</font></td>
<td bgcolor=&quot;#ffffff&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>&nbsp;</font></td>
</tr>
<tr>
<td bgcolor=&quot;#000066&quot;><font color=&quot;#FFFFFF&quot; size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>Add.
Outlets</font></td>
<td bgcolor=&quot;#eeeeee&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>&nbsp;</font></td>
<td bgcolor=&quot;#eeeeee&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>&nbsp;</font></td>
<td bgcolor=&quot;#eeeeee&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>&nbsp;</font></td>
<td bgcolor=&quot;#eeeeee&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>&nbsp;</font></td>
</tr>
<tr>
<td bgcolor=&quot;#000066&quot;><font color=&quot;#FFFFFF&quot; size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>&nbsp;</font></td>
<td bgcolor=&quot;#ffffff&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>&nbsp;</font></td>
<td bgcolor=&quot;#ffffff&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>&nbsp;</font></td>
<td bgcolor=&quot;#ffffff&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>&nbsp;</font></td>
<td bgcolor=&quot;#ffffff&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>&nbsp;</font></td>
</tr>
<tr>
<td bgcolor=&quot;#000066&quot;><font color=&quot;#FFFFFF&quot; size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>Total Cable
Run</font></td>
<td bgcolor=&quot;#eeeeee&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>&nbsp;<%=(Recordset1.Fields.Item(&quot;cableqty&quot;).Value)%></font></td>
<td bgcolor=&quot;#eeeeee&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>&nbsp;</font></td>
<td bgcolor=&quot;#eeeeee&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>&nbsp;</font></td>
<td bgcolor=&quot;#eeeeee&quot;><font size=&quot;2&quot; face=&quot;Verdana, Arial, Helvetica, sans-serif&quot;>&nbsp;</font></td>
</tr>
<tr>
<td bgcolor=&quot;#000066&quot;>&nbsp;</td>
<td bgcolor=&quot;#ffffff&quot;>&nbsp;</td>
<td bgcolor=&quot;#ffffff&quot;>&nbsp;</td>
<td bgcolor=&quot;#ffffff&quot;>&nbsp;</td>
<td bgcolor=&quot;#ffffff&quot;>&nbsp;</td>
</tr>
<tr>
<td bgcolor=&quot;#000066&quot;>&nbsp;</td>
<td bgcolor=&quot;#eeeeee&quot;><%=(Recordset1.Fields.Item(&quot;des1&quot;).Value)%></td>
<td bgcolor=&quot;#eeeeee&quot;>&nbsp;</td>
<td bgcolor=&quot;#eeeeee&quot;>&nbsp;</td>
<td bgcolor=&quot;#eeeeee&quot;>&nbsp;</td>
</tr>
<tr>
<td bgcolor=&quot;#000066&quot;>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td height=&quot;59&quot; bgcolor=&quot;#000066&quot;>&nbsp;</td>
<td colspan=&quot;2&quot;><textarea name=&quot;notes&quot; cols=&quot;50&quot; rows=&quot;6&quot; id=&quot;notes&quot;><%=(Recordset1.Fields.Item(&quot;notes&quot;).Value)%></textarea></td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td bgcolor=&quot;#000066&quot;>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td bgcolor=&quot;#000066&quot;>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td bgcolor=&quot;#000066&quot;>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td bgcolor=&quot;#000066&quot;>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td bgcolor=&quot;#000066&quot;>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td bgcolor=&quot;#000066&quot;>&nbsp;</td>
<td><input type=&quot;submit&quot; name=&quot;Submit&quot; value=&quot;Update&quot;></td>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
</table>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset1.MoveNext()
Wend
%>
</td>
</tr>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>

<p> </p>

<input type=&quot;hidden&quot; name=&quot;MM_update&quot; value=&quot;form1&quot;>
<input type=&quot;hidden&quot; name=&quot;MM_recordId&quot; value=&quot;<%= Recordset1.Fields.Item(&quot;quotenum&quot;).Value %>&quot;>
</form>
<table width=&quot;150&quot; cellspacing=&quot;1&quot; bgcolor=&quot;#aaaaaa&quot;>
<tr>
<td><table width=&quot;100%&quot; height=&quot;100%&quot; border=&quot;0&quot;>
<tr bgcolor=&quot;#FFFFFF&quot;>
<td width=&quot;23%&quot; align=&quot;center&quot;>
<% If MM_offset <> 0 Then %>
<a href=&quot;<%=MM_moveFirst%>&quot;>First</a>
<% End If ' end MM_offset <> 0 %>
</td>
<td width=&quot;31%&quot; align=&quot;center&quot;>
<% If MM_offset <> 0 Then %>
<a href=&quot;<%=MM_movePrev%>&quot;>Previous</a>
<% End If ' end MM_offset <> 0 %>
</td>
<td width=&quot;23%&quot; align=&quot;center&quot;>
<% If Not MM_atTotal Then %>
<a href=&quot;<%=MM_moveNext%>&quot;>Next</a>
<% End If ' end Not MM_atTotal %>
</td>
<td width=&quot;23%&quot; align=&quot;center&quot;>
<% If Not MM_atTotal Then %>
<a href=&quot;<%=MM_moveLast%>&quot;>Last</a>
<% End If ' end Not MM_atTotal %>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p>&nbsp;</p>
</body>
</html>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>

Thanks,

Sanjay
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top