
el codigo que uso es el siguiente:
Text1.Text = Date
Text2 = DateDiff("m", txtFECHA_NACIMIENTO, Text1)
txtEDAD = (Text2 / 12)
si alguien me puede ayudar lo agradezco muchio

| ||||
Text1.Text = Date Text2.text = DateDiff("m", txtFECHA_NACIMIENTO, Text1) txtEDAD = (val(Text2.text) / 12)
__________________ * Antes de preguntar lee las FAQ, y por favor no hagas preguntas en las FAQ Sitio http://www.geoavila.com twitter: @GeoAvila |
| ||||
GeoAvila : intenete con lo que me pasaste pero sigue dando error, no al guardar pero si al pasar a otro regstro. igualmente guarda los datos pero no el calculo de la edad. el error dice operacion cancelada, al depurar marca el error en Private Sub cmdsiguiente_Click() Dataconsul.rstpacientes.MoveNext If Dataconsul.rstpacientes.EOF Then Dataconsul.rstpacientes.MoveLast MsgBox "Esta en el último registro activo" End If End Sub
__________________ |