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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Basic page navigation

Status
Not open for further replies.

chrisdgreen

Programmer
May 8, 2002
2
GB
Hi there I'm a new member with a problem that i've been staring blankly at for the last two days.
Hopefully someone can help or point out whats going on.

I have created a simple form that passes a search query to a results page.
The results page has the usual database query that works fine.
There are 700 odd items in the database so I have got a repeat region on the table limiting the results to groups of ten.
When the page is displayed I have included a total records and a record navigation. The first page of results shows the correct number of records, as soon as I move to the next set of ten records the total records displays the total records in the database and the navigation then starts to step 10 by 10 through the lot.

Has any else had this problem or know any solutions?

Thanks in advance
Chris
 
It's alot easier for us to help you if you can paste some of the code you are using, that way we can see exactly what is going on. But quick guess. The variable that you are using to determine when you have 10 records, isn't getting reset and is being used by the next record set. The money's gone, the brain is shot.....but the liquor we still got.
 
Here is the complete page
I am not an experienced user and have had to use Ulra Dev

Cheers

<%@LANGUAGE=&quot;VBSCRIPT&quot;%>
<!--#include file=&quot;../../Connections/gfg_main.asp&quot; -->
<%
Dim Rec_search__MMColParam
Rec_search__MMColParam = Request.Form(&quot;search&quot;)
if (Request.Form(&quot;search&quot;) <> &quot;&quot;) then Rec_search__MMColParam = Request.Form(&quot;search&quot;)
%>
<%
set Rec_search = Server.CreateObject(&quot;ADODB.Recordset&quot;)
Rec_search.ActiveConnection = MM_gfg_main_STRING
Rec_search.Source = &quot;SELECT First_Name, Surname, Degree_1, Degree_2, Degree_3, Chosen_Job_1, Chosen_Job_2, Chosen_Job_3, Company_of_Interest_1, Company_of_Interest_2, Company_of_Interest_3, Current_Vacancy_1, Current_Vacancy_2, Current_Vacancy_3, Previous_Vacancy_1, Previous_Vacancy_2, Previous_Vacancy_3 FROM GraduateData WHERE First_Name LIKE '%&quot; + Replace(Rec_search__MMColParam, &quot;'&quot;, &quot;''&quot;) + &quot;%' OR Surname LIKE '%&quot; + Replace(Rec_search__MMColParam, &quot;'&quot;, &quot;''&quot;) + &quot;%' OR Degree_1 LIKE '%&quot; + Replace(Rec_search__MMColParam, &quot;'&quot;, &quot;''&quot;) + &quot;%' OR Degree_2 LIKE '%&quot; + Replace(Rec_search__MMColParam, &quot;'&quot;, &quot;''&quot;) + &quot;%' OR Degree_3 LIKE '%&quot; + Replace(Rec_search__MMColParam, &quot;'&quot;, &quot;''&quot;) + &quot;%'OR Overall_Rating LIKE '%&quot; + Replace(Rec_search__MMColParam, &quot;'&quot;, &quot;''&quot;) + &quot;%' OR Chosen_Job_1 LIKE '%&quot; + Replace(Rec_search__MMColParam, &quot;'&quot;, &quot;''&quot;) + &quot;%' OR Chosen_Job_2 LIKE '%&quot; + Replace(Rec_search__MMColParam, &quot;'&quot;, &quot;''&quot;) + &quot;%' OR Chosen_Job_3 LIKE '%&quot; + Replace(Rec_search__MMColParam, &quot;'&quot;, &quot;''&quot;) + &quot;%' OR Company_of_Interest_1 LIKE '%&quot; + Replace(Rec_search__MMColParam, &quot;'&quot;, &quot;''&quot;) + &quot;%' OR Company_of_Interest_2 LIKE '%&quot; + Replace(Rec_search__MMColParam, &quot;'&quot;, &quot;''&quot;) + &quot;%' OR Company_of_Interest_3 LIKE '%&quot; + Replace(Rec_search__MMColParam, &quot;'&quot;, &quot;''&quot;) + &quot;%' OR Current_Vacancy_1 LIKE '%&quot; + Replace(Rec_search__MMColParam, &quot;'&quot;, &quot;''&quot;) + &quot;%' OR Current_Vacancy_2 LIKE '%&quot; + Replace(Rec_search__MMColParam, &quot;'&quot;, &quot;''&quot;) + &quot;%' OR Current_Vacancy_3 LIKE '%&quot; + Replace(Rec_search__MMColParam, &quot;'&quot;, &quot;''&quot;) + &quot;%' OR Previous_Vacancy_1 LIKE '%&quot; + Replace(Rec_search__MMColParam, &quot;'&quot;, &quot;''&quot;) + &quot;%' OR Previous_Vacancy_2 LIKE '%&quot; + Replace(Rec_search__MMColParam, &quot;'&quot;, &quot;''&quot;) + &quot;%' OR Previous_Vacancy_3 LIKE '%&quot; + Replace(Rec_search__MMColParam, &quot;'&quot;, &quot;''&quot;) + &quot;%'&quot;
Rec_search.CursorType = 0
Rec_search.CursorLocation = 2
Rec_search.LockType = 3
Rec_search.Open()
Rec_search_numRows = 0
%>
<%
Dim Repeat1__numRows
Repeat1__numRows = 10
Dim Repeat1__index
Repeat1__index = 0
Rec_search_numRows = Rec_search_numRows + Repeat1__numRows
%>
<%
' *** Recordset Stats, Move To Record, and Go To Record: declare stats variables

' set the record count
Rec_search_total = Rec_search.RecordCount

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

' set the first and last displayed record
Rec_search_first = 1
Rec_search_last = Rec_search_first + Rec_search_numRows - 1

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

If (Rec_search_total = -1) Then

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

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

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

' set the first and last displayed record
Rec_search_first = 1
Rec_search_last = Rec_search_first + Rec_search_numRows - 1
If (Rec_search_first > Rec_search_total) Then Rec_search_first = Rec_search_total
If (Rec_search_last > Rec_search_total) Then Rec_search_last = Rec_search_total

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

Set MM_rs = Rec_search
MM_rsCount = Rec_search_total
MM_size = Rec_search_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
r = Request.QueryString(&quot;index&quot;)
If r = &quot;&quot; Then r = Request.QueryString(&quot;offset&quot;)
If r <> &quot;&quot; Then MM_offset = Int(r)

' 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
i = 0
While ((Not MM_rs.EOF) And (i < MM_offset Or MM_offset = -1))
MM_rs.MoveNext
i = i + 1
Wend
If (MM_rs.EOF) Then MM_offset = i ' set MM_offset to the last possible record

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
i = MM_offset
While (Not MM_rs.EOF And (MM_size < 0 Or i < MM_offset + MM_size))
MM_rs.MoveNext
i = i + 1
Wend

' if we walked off the end of the recordset, set MM_rsCount and MM_size
If (MM_rs.EOF) Then
MM_rsCount = i
If (MM_size < 0 Or MM_size > MM_rsCount) Then MM_size = MM_rsCount
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
i = 0
While (Not MM_rs.EOF And i < MM_offset)
MM_rs.MoveNext
i = i + 1
Wend
End If
%>
<%
' *** Move To Record: update recordset stats

' set the first and last displayed record
Rec_search_first = MM_offset + 1
Rec_search_last = MM_offset + MM_size
If (MM_rsCount <> -1) Then
If (Rec_search_first > MM_rsCount) Then Rec_search_first = MM_rsCount
If (Rec_search_last > MM_rsCount) Then Rec_search_last = MM_rsCount
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

' 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;
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 Item In Request.QueryString
NextItem = &quot;&&quot; & Item & &quot;=&quot;
If (InStr(1,MM_removeList,NextItem,1) = 0) Then
MM_keepURL = MM_keepURL & NextItem & Server.URLencode(Request.QueryString(Item))
End If
Next

' add the Form variables to the MM_keepForm string
For Each Item In Request.Form
NextItem = &quot;&&quot; & Item & &quot;=&quot;
If (InStr(1,MM_removeList,NextItem,1) = 0) Then
MM_keepForm = MM_keepForm & NextItem & Server.URLencode(Request.Form(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)
if (MM_keepURL <> &quot;&quot;) Then MM_keepURL = Right(MM_keepURL, Len(MM_keepURL) - 1)
if (MM_keepForm <> &quot;&quot;) Then MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1)

' 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

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 > 0) Then
MM_moveParam = &quot;offset&quot;
If (MM_keepMove <> &quot;&quot;) Then
params = Split(MM_keepMove, &quot;&&quot;)
MM_keepMove = &quot;&quot;
For i = 0 To UBound(params)
nextItem = Left(params(i), InStr(params(i),&quot;=&quot;) - 1)
If (StrComp(nextItem,MM_moveParam,1) <> 0) Then
MM_keepMove = MM_keepMove & &quot;&&quot; & params(i)
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;
urlStr = Request.ServerVariables(&quot;URL&quot;) & &quot;?&quot; & MM_keepMove & MM_moveParam & &quot;=&quot;
MM_moveFirst = urlStr & &quot;0&quot;
MM_moveLast = urlStr & &quot;-1&quot;
MM_moveNext = urlStr & Cstr(MM_offset + MM_size)
prev = MM_offset - MM_size
If (prev < 0) Then prev = 0
MM_movePrev = urlStr & Cstr(prev)
%>
<HTML>
<HEAD>
</HEAD>
<title>General Search</title>
<body text=&quot;#CCCCCC&quot; bgcolor=&quot;#330066&quot; link=&quot;#FF9933&quot; vlink=&quot;#FFCC00&quot; alink=&quot;#FF9933&quot;>
<% If Not Rec_search.EOF Or Not Rec_search.BOF Then %>
<table width=&quot;100%&quot; border=&quot;1&quot; cellspacing=&quot;0&quot; cellpadding=&quot;1&quot; bordercolor=&quot;#996699&quot;>
<tr valign=&quot;middle&quot; align=&quot;center&quot;>
<td colspan=&quot;17&quot; align=&quot;left&quot;><font face=&quot;Geneva, Arial, Helvetica, san-serif&quot; color=&quot;#FF9933&quot;><b>Search
Results</b></font></td>
</tr>
<tr valign=&quot;top&quot; align=&quot;center&quot;>
<td width=&quot;11%&quot; bgcolor=&quot;#663399&quot;><b><font face=&quot;Geneva, Arial, Helvetica, san-serif&quot; color=&quot;#FF9933&quot; size=&quot;-1&quot;>Name</font></b></td>
<td width=&quot;10%&quot; bgcolor=&quot;#663399&quot;><b><font face=&quot;Geneva, Arial, Helvetica, san-serif&quot; color=&quot;#FF9933&quot; size=&quot;-1&quot;>Surname</font></b></td>
<td width=&quot;12%&quot; bgcolor=&quot;#663399&quot;><b><font face=&quot;Geneva, Arial, Helvetica, san-serif&quot; color=&quot;#FF9933&quot; size=&quot;-1&quot;>Chosen
1</font></b></td>
<td width=&quot;0%&quot; bgcolor=&quot;#663399&quot;><b><font face=&quot;Geneva, Arial, Helvetica, san-serif&quot; color=&quot;#FF9933&quot; size=&quot;-1&quot;>Chosen
2</font></b></td>
<td width=&quot;4%&quot; bgcolor=&quot;#663399&quot;><b><font face=&quot;Geneva, Arial, Helvetica, san-serif&quot; color=&quot;#FF9933&quot; size=&quot;-1&quot;>Chosen
3</font></b></td>
<td width=&quot;16%&quot; bgcolor=&quot;#663399&quot;><b><font face=&quot;Geneva, Arial, Helvetica, san-serif&quot; color=&quot;#FF9933&quot; size=&quot;-1&quot;>Degree
1</font></b></td>
<td width=&quot;16%&quot; bgcolor=&quot;#663399&quot;><b><font face=&quot;Geneva, Arial, Helvetica, san-serif&quot; color=&quot;#FF9933&quot; size=&quot;-1&quot;>Degree
2</font></b></td>
<td width=&quot;16%&quot; bgcolor=&quot;#663399&quot;><b><font face=&quot;Geneva, Arial, Helvetica, san-serif&quot; color=&quot;#FF9933&quot; size=&quot;-1&quot;>Degree
3</font></b></td>
<td width=&quot;14%&quot; bgcolor=&quot;#663399&quot;><b><font face=&quot;Geneva, Arial, Helvetica, san-serif&quot; color=&quot;#FF9933&quot; size=&quot;-1&quot;>Company
of Interest 1</font></b></td>
<td width=&quot;14%&quot; bgcolor=&quot;#663399&quot;><b><font face=&quot;Geneva, Arial, Helvetica, san-serif&quot; color=&quot;#FF9933&quot; size=&quot;-1&quot;>Company
of Interest 2</font></b></td>
<td width=&quot;14%&quot; bgcolor=&quot;#663399&quot;><b><font face=&quot;Geneva, Arial, Helvetica, san-serif&quot; color=&quot;#FF9933&quot; size=&quot;-1&quot;>Company
of Interest 3</font></b></td>
<td width=&quot;14%&quot; bgcolor=&quot;#663399&quot;><b><font face=&quot;Geneva, Arial, Helvetica, san-serif&quot; color=&quot;#FF9933&quot; size=&quot;-1&quot;>Current
Vacancy 1</font></b></td>
<td width=&quot;23%&quot; bgcolor=&quot;#663399&quot;><b><font face=&quot;Geneva, Arial, Helvetica, san-serif&quot; color=&quot;#FF9933&quot; size=&quot;-1&quot;>Current
Vacancy 2</font></b></td>
<td width=&quot;23%&quot; bgcolor=&quot;#663399&quot;><b><font face=&quot;Geneva, Arial, Helvetica, san-serif&quot; color=&quot;#FF9933&quot; size=&quot;-1&quot;>Current
Vacancy 3</font></b></td>
<td width=&quot;23%&quot; bgcolor=&quot;#663399&quot;><b><font face=&quot;Geneva, Arial, Helvetica, san-serif&quot; color=&quot;#FF9933&quot; size=&quot;-1&quot;>Previous
Vacancy 1</font></b></td>
<td width=&quot;23%&quot; bgcolor=&quot;#663399&quot;><b><font face=&quot;Geneva, Arial, Helvetica, san-serif&quot; color=&quot;#FF9933&quot; size=&quot;-1&quot;>Previous
Vacancy 2</font></b></td>
<td width=&quot;23%&quot; bgcolor=&quot;#663399&quot;><b><font face=&quot;Geneva, Arial, Helvetica, san-serif&quot; color=&quot;#FF9933&quot; size=&quot;-1&quot;>Previous
Vacancy 3</font></b></td>
</tr>
<%
While ((Repeat1__numRows <> 0) AND (NOT Rec_search.EOF))
%>
<% If Not Rec_search.EOF Or Not Rec_search.BOF Then %>
<tr valign=&quot;top&quot;>
<td><font face=&quot;Geneva, Arial, Helvetica, san-serif&quot; size=&quot;-2&quot;><A HREF=&quot;details.asp?<%= MM_keepNone & MM_joinChar(MM_keepNone) & &quot;First_Name=&quot; & Rec_search.Fields.Item(&quot;First_Name&quot;).Value %>&quot;><%=(Rec_search.Fields.Item(&quot;First_Name&quot;).Value)%></A><br>
<img src=&quot;../../images/spacer.gif&quot; alt=&quot;&quot; width=&quot;80&quot; border=&quot;0&quot; height=&quot;1&quot;></font></td>
<td width=&quot;10%&quot;><font face=&quot;Geneva, Arial, Helvetica, san-serif&quot; size=&quot;-2&quot;><%=(Rec_search.Fields.Item(&quot;Surname&quot;).Value)%></font></td>
<td width=&quot;12%&quot;><font face=&quot;Geneva, Arial, Helvetica, san-serif&quot; size=&quot;-2&quot;><%=(Rec_search.Fields.Item(&quot;Chosen_Job_1&quot;).Value)%></font></td>
<td width=&quot;0%&quot;><font face=&quot;Geneva, Arial, Helvetica, san-serif&quot; size=&quot;-2&quot;><%=(Rec_search.Fields.Item(&quot;Chosen_Job_2&quot;).Value)%></font></td>
<td width=&quot;4%&quot;><font face=&quot;Geneva, Arial, Helvetica, san-serif&quot; size=&quot;-2&quot;><%=(Rec_search.Fields.Item(&quot;Chosen_Job_3&quot;).Value)%></font></td>
<td width=&quot;10%&quot;><font face=&quot;Geneva, Arial, Helvetica, san-serif&quot; size=&quot;-2&quot;><%=(Rec_search.Fields.Item(&quot;Degree_1&quot;).Value)%></font></td>
<td width=&quot;16%&quot;><font face=&quot;Geneva, Arial, Helvetica, san-serif&quot; size=&quot;-2&quot;><%=(Rec_search.Fields.Item(&quot;Degree_2&quot;).Value)%></font></td>
<td width=&quot;16%&quot;><font face=&quot;Geneva, Arial, Helvetica, san-serif&quot; size=&quot;-2&quot;><%=(Rec_search.Fields.Item(&quot;Degree_3&quot;).Value)%></font></td>
<td width=&quot;14%&quot;><font face=&quot;Geneva, Arial, Helvetica, san-serif&quot; size=&quot;-2&quot;><%=(Rec_search.Fields.Item(&quot;Company_of_Interest_1&quot;).Value)%></font></td>
<td width=&quot;14%&quot;><font face=&quot;Geneva, Arial, Helvetica, san-serif&quot; size=&quot;-2&quot;><%=(Rec_search.Fields.Item(&quot;Company_of_Interest_2&quot;).Value)%></font></td>
<td width=&quot;14%&quot;><font face=&quot;Geneva, Arial, Helvetica, san-serif&quot; size=&quot;-2&quot;><%=(Rec_search.Fields.Item(&quot;Company_of_Interest_3&quot;).Value)%></font></td>
<td width=&quot;14%&quot;><font face=&quot;Geneva, Arial, Helvetica, san-serif&quot; size=&quot;-2&quot;><%=(Rec_search.Fields.Item(&quot;Current_Vacancy_1&quot;).Value)%></font></td>
<td width=&quot;23%&quot;><font face=&quot;Geneva, Arial, Helvetica, san-serif&quot; size=&quot;-2&quot;><%=(Rec_search.Fields.Item(&quot;Current_Vacancy_2&quot;).Value)%></font></td>
<td width=&quot;23%&quot;><font face=&quot;Geneva, Arial, Helvetica, san-serif&quot; size=&quot;-2&quot;><%=(Rec_search.Fields.Item(&quot;Current_Vacancy_3&quot;).Value)%></font></td>
<td width=&quot;23%&quot;><font face=&quot;Geneva, Arial, Helvetica, san-serif&quot; size=&quot;-2&quot;><%=(Rec_search.Fields.Item(&quot;Previous_Vacancy_1&quot;).Value)%></font></td>
<td width=&quot;23%&quot;><font face=&quot;Geneva, Arial, Helvetica, san-serif&quot; size=&quot;-2&quot;><%=(Rec_search.Fields.Item(&quot;Previous_Vacancy_2&quot;).Value)%></font></td>
<td width=&quot;23%&quot;><font face=&quot;Geneva, Arial, Helvetica, san-serif&quot; size=&quot;-2&quot;><%=(Rec_search.Fields.Item(&quot;Previous_Vacancy_3&quot;).Value)%></font></td>
</tr>
<% End If ' end Not Rec_search.EOF Or NOT Rec_search.BOF %>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Rec_search.MoveNext()
Wend
%>
<% If Not Rec_search.EOF Or Not Rec_search.BOF Then %>
<% End If ' end Not Rec_search.EOF Or NOT Rec_search.BOF %>
<tr>
<td colspan=&quot;17&quot;>
<p><font face=&quot;Verdana, Arial, Helvetica, sans-serif&quot; size=&quot;-1&quot;><%=(Rec_search_total)%> records</font></p>
<p> <font face=&quot;Geneva, Arial, Helvetica, san-serif&quot; size=&quot;-1&quot;>Records <%=(Rec_search_first)%> to <%=(Rec_search_last)%> of <%=(Rec_search_total)%></font></p>
<table border=&quot;0&quot; width=&quot;25%&quot; align=&quot;left&quot; cellspacing=&quot;0&quot; cellpadding=&quot;0&quot;>
<tr align=&quot;left&quot;>
<td width=&quot;23%&quot;> <font face=&quot;Verdana, Arial, Helvetica, sans-serif&quot; size=&quot;-1&quot;>
<% If MM_offset <> 0 Then %>
<a href=&quot;<%=MM_moveFirst%>&quot;>First</a>
<% End If ' end MM_offset <> 0 %>
</font></td>
<td width=&quot;31%&quot;> <font face=&quot;Verdana, Arial, Helvetica, sans-serif&quot; size=&quot;-1&quot;>
<% If MM_offset <> 0 Then %>
<a href=&quot;<%=MM_movePrev%>&quot;>Previous</a>
<% End If ' end MM_offset <> 0 %>
</font></td>
<td width=&quot;23%&quot;> <font face=&quot;Verdana, Arial, Helvetica, sans-serif&quot; size=&quot;-1&quot;>
<% If Not MM_atTotal Then %>
<a href=&quot;<%=MM_moveNext%>&quot;>Next</a>
<% End If ' end Not MM_atTotal %>
</font></td>
<td width=&quot;23%&quot;> <font face=&quot;Verdana, Arial, Helvetica, sans-serif&quot; size=&quot;-1&quot;>
<% If Not MM_atTotal Then %>
<a href=&quot;<%=MM_moveLast%>&quot;>Last</a>
<% End If ' end Not MM_atTotal %>
</font></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan=&quot;17&quot;><font face=&quot;Geneva, Arial, Helvetica, san-serif&quot; size=&quot;-2&quot;><a href=&quot;graduate.asp&quot;>New
search</a></font></td>
</tr>
</table>
<% End If ' end Not Rec_search.EOF Or NOT Rec_search.BOF %>
<% If Rec_search.EOF And Rec_search.BOF Then %>
<table width=&quot;100%&quot; border=&quot;0&quot; cellspacing=&quot;0&quot; cellpadding=&quot;15&quot;>
<tr>
<td><font face=&quot;Geneva, Arial, Helvetica, san-serif&quot; size=&quot;-2&quot; color=&quot;#CCCCCC&quot;>Sorry,
but there is no matches to your query...</font><font face=&quot;Geneva, Arial, Helvetica, san-serif&quot; size=&quot;-2&quot;>
<a href=&quot;graduate.asp&quot;>click here to search again</a></font></td>
</tr>
</table>
<% End If ' end Rec_search.EOF And Rec_search.BOF %>
<map name=&quot;gfg_02_r1_c1Map&quot;>
<area shape=&quot;rect&quot; coords=&quot;597,2,665,72&quot; href=&quot;welcome.htm&quot; alt=&quot;Home&quot; title=&quot;Home&quot; target=&quot;_self&quot;>
</map>
</body>
</HTML>
<%
Rec_search.Close()
%>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top