the following code use teh AspdbIndex ->

<%
Set X= Server.CreateObject(&#34;ASP.DB&#34
X.dbUnit = &#34;999&#34;
X.dbMode = &#34;Grid&#34;
X.dbDSN = &#34;DSN=NWIND&#34;
X.dbMagicCell = &#34;(;,[]#|~/+{})EmployeeID,,#AspdbIndex# - #0#&#34;
X.dbSQL = &#34;SELECT EmployeeID,LastName,FirstName FROM Employees&#34;
X.ASPdb
%>


------------
Allan at 8/10/01 12:45:58 PM


Hello,

I saw in your other messages a way to put images in for editing and deleting records. While using the code I found that I can&#39;t use AsoDbIndex. Is this because of a coding erro on my part?



<%
Set x = Server.CreateObject(&#34;ASPdb.Pro&#34
x.dbDSN=&#34;joeandal&#34;
X.dbUnit = 800
X.dbSQL = &#34;SELECT 1 as Record, County, State FROM homes&#34;
X.dbEditParams = &#34;(;,)TableName=homes, BookMarkFlds=ID, RecordScope=Single&#34;
x.dbNavigationItem = &#34;top,prev,next,bottom,reload,update&#34;

&#39; original code from aspdb forum
&#39;X.dbMagicCell = &#34;(*[]#|~/)Edit**<a href=&#39;&#39;#Me#?aspDBBut_800=aspdbEditUpdate:: #AspdbIndex#&aspDBUnit=_800&aspDBClick_800=update& aspdbEBM_800=&#39; & Server.URLEncode(&#39;County=&#39 & &#39;#(0)#&#39;&#39;><img src=&#39;&#39;../images/updateicon.gif&#39;&#39; width=&#39;&#39;18&#39;&#39; height=&#39;&#39;16&#39;&#39; border=&#39;&#39;0&#39;&#39;></a>,<a href=&#39;&#39;#Me#?aspDBBut_800=aspdbEditDelete:: #AspdbIndex#&aspDBUnit=_800&aspDBClick_800=delete& aspdbEBM_800=&#39; & Server.URLEncode(&#39;County=&#39 & &#39;#(0)#&#39;&#39;><img src=&#39;&#39;../images/deleteicon.gif&#39;&#39; width=&#39;&#39;20&#39;&#39; height=&#39;&#39;16&#39;&#39; border=&#39;&#39;0&#39;&#39;></a>&#34;

&#39;can&#39;t get record number on the line below using aspDbIndex
MC = &#34;Record,,<a href=&#34;&#34;#Me#?aspDBBut_800=aspdbGoForm::#Asp dbIndex#&#34;&#34;>STEP1</a>&nbsp&nbsp &#34;
MC = MC & &#34;<a href=&#34;&#34;#Me#?aspDBBut_800=aspdbEditUpdate:: #AspdbIndex#&aspDBUnit=_800&aspDBClick_800=update& aspdbEBM_800=&#34; & Server.URLEncode(&#34;County=&#34 & &#34;#(0)#&#34;&#34;>STEP2</a>&#34;

X.dbMagicCell = MC
x.ASPdbPro

%>

Thanks

Allan