John Zelmer
Registered User.
- Local time
- Today, 10:12
- Joined
- May 13, 2015
- Messages
- 39
Hi all,
In a inhereted db, in a form, there is field A (search category) which, in its 'after update' event, has code to set focus to field B (wich is a combobox (and set to 'only in list')). After that piece of code there is code that uses 5 sendkeys commands to send 5 letters/numbers to field B as a prefix (that is used for searching purposes, people then won't have to type in the prefix everytime).
I assume the former developer did this because you can't set field B's value when it is just a part of the whole value. It won't accept the partial value as it is not in the list.
Now users are getting problems that the first sendkeys letter isn't properly send, so they miss one letter each time they search. I know sendkeys is a big No-No. I was wondering if someone has an idea for a robust solution for this problem.
I hope the problem is clear.
Thanks in advance,
John
In a inhereted db, in a form, there is field A (search category) which, in its 'after update' event, has code to set focus to field B (wich is a combobox (and set to 'only in list')). After that piece of code there is code that uses 5 sendkeys commands to send 5 letters/numbers to field B as a prefix (that is used for searching purposes, people then won't have to type in the prefix everytime).
I assume the former developer did this because you can't set field B's value when it is just a part of the whole value. It won't accept the partial value as it is not in the list.
Now users are getting problems that the first sendkeys letter isn't properly send, so they miss one letter each time they search. I know sendkeys is a big No-No. I was wondering if someone has an idea for a robust solution for this problem.
I hope the problem is clear.
Thanks in advance,
John