Hi can anybody help me..
I'm trying to take a date from a text file,
put it into a variable varExpiryDate, and compare the
ExpiryDate with the varDateNow variable..


If varDateNow >= varExpiryDate Then
MsgBox "This Program has reached the end of its time
limit."
End
End If

the previous code works if I manually put in the date instead of the variable varExpiryDate, #12/4/00#

The code to find the date is something like this

If InStr(TextLine, 1) = #12/5/00# Then
varExpiryDate = #12/5/00#
Call TimeLimit
End If


the date in the text file is written 12/5/00


if anyone can help I would be most grateful.
cheers
skat