use the above function and just change the > to < like this...
vb Code:
  1. If CSng(strTemp) < sngNum Then
this should help you....