Hi Adele !!!
Thanks alot for the Help !!!. Where would you suggest i should enter that code ?
In the Item event. If you're using visual basic you can click the left top drop down to select an object. Here you select your application object, i.e. oApplication or sbo_Application or whatever you called it. Then in the right hand drop down list select Itemevent. This will automatically create a procedure for you. In that item event paste the code.
Hope it helps,
PS: For the others who did not follow the previous thread, this is what happened before this post: