The code looks fine. Can you share the actual file, or a sample file that demonstrates this issue?
First you need to clic on the right arrow to begin.
Then you must tick radio-buttons (required).
Clic on the right arrow again and fill the 2 text fields (not required).
Clic on the right arrow to finish, and clic the purple word "ici" to send via email.
The file doesn't exist.
I think the issue is that on the MouseEnter event of Button2 you're setting the dirty property to false, so the file doesn't get saved before it is sent in the MouseUp command (which executes after MouseEnter). That's why you're getting a blank file...
The worst is that I cannot figure why this line is here, it's no use anywhere.
A copy-pasting bug I guess…
In any case it's even evidence that four eyes are better than two.
Giga thank you!
You saved me.
PS. Validating the form on MouseEnter is not a very good idea. Why not simply incorporate it into the MouseUp code?
Because this form was originaly made by someone else who is currently unavailable.
So I'd prefer to keep my added scripts separate to leave her scripts untouched and simplify tracking in the future.