Take a look at this example.

http://www.vbpj.com/upload/free/feat...107/rein-4.asp