Ver Mensaje Individual
  #2 (permalink)  
Antiguo 05/08/2003, 14:23
Avatar de Don Graff
Don Graff
 
Fecha de Ingreso: noviembre-2002
Ubicación: San Bernardo - Chile
Mensajes: 410
Antigüedad: 22 años, 5 meses
Puntos: 0
SQL="SELECT MAX(clave)as maximo FROM mitabla"
.........ejecutas el sql
maximo=maximo+1


y para el INSERT ocupas maximo


SQL="INSERT INTO tutabla (indece, otrocampo, yotromas) VALUES (" & maximo & ", otrovalor, yotromas)"

__________________
:cool: Visita Zona Powers :cool: