Option Explicit
Dim dtmdate1 As Date
Dim dtmdate2 As Date
Dim dtmdays As Long
Dim dtmmesc As Long
Dim dtmlets As Long
Private Sub cmdcompute_Click()
dtmdate1 = CDate(txtdate1.Text)
dtmdate2 = CDate(txtsk.Text)
dtmdays = dtmdate1 - dtmdate2
dtmmesc = dtmdays / 12
dtmlets = dtmdays / 365
txtresult.Text = dtmdays
txtmes.Text = dtmmesc
txtlet.Text = dtmlets
End Sub
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 38