in vb you can get the current time by using now()
jbennet
Moderator
18,523 posts since Apr 2005
Reputation Points: 1,826
Solved Threads: 601
HI
you need to set the Time Difff in text3 control right, then use the following code under any event
text3.text=DateDiff("n",cdate(text1.text),cdate(text2.text)
it is suggeted to check for the valid time entry by using the isdate function
Ex:
if isdate(text1.text)=false then
msgbox "Not Valid Time"
end if
hope this will help you,
regards
Venkatramasamy Sn
venkatramasamy
Junior Poster in Training
71 posts since Aug 2007
Reputation Points: 12
Solved Threads: 12