I could not figure-out how the macro can be called from the click event of command button. I have put following line in click event of command button.
But it does not work. I think, I am not using it properly. Any comment?
What sort for button (Contr9ol toolbar of forms)? Where did you put the code?