The problem is that by the time the code in the cliked event of the
button is reached, the active dw has already lost focus and I
therefore do not know how to identify it.
Could someone help me with this?
Woody Splawn
Working with sheets (and using toolbars instead of command buttons) is
another way of avoiding this problem.
----------------
Try GetFocus() Function. Read Help and the code example for this
function
Hope this helps
Prasad Paruchuri
Thank you for responding.
<<Try GetFocus() Function. Read Help and the code example for this
function.>>
I understand what your saying but that's the problem. With
the code on a button, your focus is on the button and the object you
were on has lost focus.
Woody Splawn