Hello there!
I need your advice guys i got this error rrun-time error '13': type mismatch every time they reach the condition. Instead of msgbox its a run-time error. If i take the label16.caption = datediff its working fine.
Private Sub cmdnxt_Click()
Adodc1.Recordset.MoveNext
Label16.Caption = DateDiff("YYYY", Label15.Caption, Now)- type mismatch
If Adodc1.Recordset.EOF Then
Adodc1.Recordset.MoveLast
MsgBox "End of File", vbInformation
End If
End Sub
Private Sub cmdprvs_Click()
Adodc1.Recordset.MovePrevious
Label16.Caption = DateDiff("YYYY", Label15.Caption, Now)- type mismatch
If Adodc1.Recordset.BOF Then
Adodc1.Recordset.MoveFirst
MsgBox "Begin of file", vbInformation
End If
End Sub