0

i am writing program in vb 6.0 with msacesss as the database.what the program is about is hardware insurance management system.there is date registered in the entry form and date expir.i want explanation on how to use the date diff with code on to calculate the date difference.so that when a registration expire the msgbox we alert me that a registration as expired. thanks.

2
Contributors
1
Reply
4
Views
10 Years
Discussion Span
Last Post by QVeen72
0

Hi,

Try This :

Dim i As Integer
i=DateDiff("d",CDate(txtEntDate), CDate(txtExpDate))

Regards
Veena

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.