Ver Mensaje Individual
  #2 (permalink)  
Antiguo 10/02/2005, 04:52
Avatar de Muzztein
Muzztein
 
Fecha de Ingreso: agosto-2002
Ubicación: Hangar 18
Mensajes: 1.703
Antigüedad: 22 años, 8 meses
Puntos: 16
algo asi ???


<%
Function GetMyMaxId(table, field)
Set rsGetMyMaxId = Server.CreateObject("ADODB.Recordset")

strSQLGetMyMaxId = "SELECT MAX(" & field & ") AS myMax , "& autonumerico &" as PK FROM " & table

rsGetMyMaxId.Open strSQLGetMyMaxId, ObjConn, 3, 3
fnctMyMaxId = rsGetMyMaxId("myMax") & "," & rsGetMyMaxId("PK")


If IsNull(fnctMyMaxId) Then
fnctMyMaxId = false
End If

rsGetMyMaxId.Close
Set rsGetMyMaxId = Nothing
GetMyMaxId = fnctMyMaxId
End Function
%>


y luego la capturas con un split por coma...

or something