You've said what you're trying to do, but you have not said why you cannot achieve this. The previous post gives some starting points; if you get errors, or your code does not behave as expected, can you provide more details of your problem ?
Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk