hi, tkx to welcome me in here!
i have wrttien a program in vb6 that uses ms access. the program is a attendance monitoring system, that uses the time to calculates hrs late and early of employees.

im having problem
i dnt know how to make validations in vb6 ex: if i wrongly enter a time e.g i insert a num, the program exitshlp plz

hi,


To check the Date entered by the user, use "IsDate" function. Use the below coding.


If IsDate(Text1.Text)=False then
msgbox "Wrong Data"
End If

Regards.
Shailu.:)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.