>Hello Gurus!
>
>Thanks for the help yesterday! You guys (and ladies!) are great!
>
>Now, onto todays question.
>
>I have some data entry objects on a form... don't we all???
>
>In particular, I have a textbox, where as the user types in a string of data, EACH character is intercepted by a KEYPRESS event and analyzed.
>
>If it is a character, it is added to the string and used to FILTER a grid above the textbox, so the user can see in realtime a filterd look at the data (and it is FAST too....).
>
>OK... now we want to allow the user to JUMP directly to the grid (so they can move through the rows and select the ones they want to work with) IF they type in an ENTER key at the end of the string. Right now, it doesn't jump up there, even if I intercept the ENTER key (char 32) and do a SETFOCUS on the grid.
>
>The txtbox is named txtDrugFilter
>and the grid is called grdPrescriptions
>
>Any ideas? Thanks in advance!!
>
>Tommy (and Karen)
you allow to pass ENTER into the class's keypress,
and set
grid.TabOrder = textbox.Taborder-1
or put NODEFAULT into the Keypress procedure ( not into a called subroutine )
if parameters=(13,0)
nodefault
grid.setfocus