Hi Greg Collins
I have tried "Approach 2" this in my InfoPath form it works fine
But i need to publish this form in sharepoint form library
so i need to create browser enabled form
and this approach does not work in browser enabled form.