Originally Posted by
djrivers
...It's just weird that it's a same onclick event but reacts differently...
It's not the OnClick events that are acting differently! The difference in function, here, is caused because a Command Button can receive Focus...but an Image Control cannot...and until Focus leaves the Textbox... txtTextCopy has no Value.
When you click on the Command Button, Focus is moved away from txtTextCopy...when you click on the Image Control, Focus remains on the Textbox.
Hence Colin's correct suggestion that you need to move Focus away the txtTextCopy before executing the rest of your code that is dependent on its Value.
Linq ;0)>
The problem with making anything foolproof...is that fools are so darn ingenious!
All posts/responses based on Access 2003/2007