Thank you Kevin. Works just great!
I wonder if you can answer a related question please ...
Attached is a standard browse and you will see the EMail button. This works fine but there is an issue with focus.
When I open the browse the top record is not highlighted fully. So I have to click in the line to actually make it the focus. That is one general issue with browses I have.
The other is that under the email button I have some code which calls the email form. No problem there. The code passes the invoice information to the email form.
The thing is I am using the Inv:GUID and the only way I seem to be able to retrieve that is in the "User clicked on the row embed".
Now when they click on the email button, the first time it does not fire the User Clicked code. I guess therefore my general question would be:
1. How do you force the borwse to set the focus on the first record of the browse
2. How do you get the Invoice record ID or whatever when you click on the email button bearing in mind that the focus does not appear to be on the invoice line at the time.
Just to clarify, there are 2 separate issues really. So issue #2 can happen with ANY record. How to get the record ID when they click on that button.
I hope that makes sense.
Thanks
John
[attachment deleted by admin]