<br><font size=2 face="sans-serif">Could you add some code like the following:</font>
<br>
<br><font size=2 face="sans-serif">dim rst as recordset</font>
<br>
<br><font size=2 face="sans-serif">if rst.bof then</font>
<br><font size=2 face="sans-serif"> 'Disable previous control</font>
<br><font size=2 face="sans-serif">Elseif rst.eof then</font>
<br><font size=2 face="sans-serif"> 'Disable next control</font>
<br><font size=2 face="sans-serif">end if</font>
<br>
<br>
<br><font size=2 face="sans-serif">Just a quick idea, and maybe a jumping off point.</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>"Gowey Mike W" <Mike.W.Gowey@doc.state.or.us></b></font>
<br><font size=1 face="sans-serif">Sent by: accessd-bounces@databaseadvisors.com</font>
<p><font size=1 face="sans-serif">06/10/2003 10:01 AM</font>
<br><font size=1 face="sans-serif">Please respond to accessd</font>
<br>
<td><font size=1 face="Arial"> </font>
<br><font size=1 face="sans-serif"> To: accessd@databaseadvisors.com</font>
<br><font size=1 face="sans-serif"> cc: </font>
<br><font size=1 face="sans-serif"> Subject: [AccessD] Error on Next Record</font></table>
<br>
<br>
<br><font size=2 face="Courier New"><br>
Hello Everyone,<br>
<br>
<br>
Does someone possibly know how I can get rid of the following runtime<br>
error?<br>
<br>
Runtime error '2105<br>
You can't go to the specified record.<br>
<br>
<br>
I have a form that I use a query to extract certain information from a<br>
Linked Oracle table. I have buttons on the form for the user to go to<br>
next and previous records. When ever they reach the first record and<br>
press the previous button again this error comes up and if they reach<br>
the last record and press the next button again the error also comes up.<br>
<br>
Is there anyway to make this error not show and just stay on the current<br>
record?? I don't want the user to have to answer the question to be<br>
able to continue.<br>
<br>
Mike Gowey, MCP<br>
Technical Support Analyst<br>
SRCI ISSD Team Leader<br>
<br>
<br>
_______________________________________________<br>
AccessD mailing list<br>
AccessD@databaseadvisors.com<br>
http://databaseadvisors.com/mailman/listinfo/accessd<br>
Website: http://www.databaseadvisors.com<br>
<br>
</font>
<br>
<br>