Erika -
This raises a couple of "points" for me. Since I use the "Search" element for most searches, I thought I could at least make use of the On Retrieve Spec Open Event by placing the "cursor" in that element. I was not able to accomplish what I want.
I tried several programming statement for the On Retrieve Spec Open Event, including:
goto Search
and when that didn't work
ThrowFocus(Search)
and when that didn't work
If @mode() = 2 Then goto Search
and when that didn't work
If @mode() = 2 Then ThrowFocus(Search)
Unfortunately, nothing seemed to work, hence my question.
When, precisely are you in a "Retrieve spec (search mode)? I presumed that when I pressed F7 and went into search mode that's when I would be in the On Retreive Spec Open event. I would appreciate help if what I want is "doable."
Since there are at least these two events that can execute programming in Search Mode - and since I think it would be very helpful to execute other programming in search mode - I have a suggestion for a product enhancement and that is to provide for programming in search mode.
Quote:Otherwise, you would have to wrap every line of your existing code in a mode check to prevent it from running.
In this case, why couldn't the "reverse" occur. Allow programming in Search Mode but
only if it is prefaced with either a special "symbol" or:
If @mode() = 2 Then ... etc.
I think this would be a great feature. Thanks!