Out of Control Text Box

raskew

AWF VIP
Local time
Today, 02:10
Joined
Jun 2, 2001
Messages
2,734
Hi -
Got a strange situation with a text box in a search form. The form is along the lines of the Cool Search Tool form that's been discussed here from time to time.

The user types in letters, dates, numbers and on OnChange (i.e. each character typed) a BuildCriteria criteria is created and the form is requeried. The problem is when the form is setup as continuous forms, with the search box in the form header, after each change it automatically tabs to the first field in the continuous form.

Have tried every thinkable setting on text box properties -- to no avail. ADDED: SetFocus is not the answer since this highlights the entire contents of the text box, rather than placing the cursor at the end of the last character input.

The odd part is that if the form is set as single form, with the search box and a list box displaying the records (rather than continuous form), all in the form's detail section, the search box behaves as desired.

If this situation sounds vaguely familiar, I'd sure appreciate any insight. I'm hoping there's a duh-huh solution.

Thanks - Bob
 
Last edited:
I would think that when using a continuous form it is gaining focus on each change in the search text as it may be treating it as a new event eg. another record found so another record/line/box added to the continous form? just a guess I'm throwing out as it works in list box view... maybe disable the tab stop in the errant field of the continuous form?

Then again probably way of the mark as said just a guess :)

good luck john

that sounded far better in my head than when I just read it....
 
Last edited:

Users who are viewing this thread

Back
Top Bottom