USing a DO_KEY in the according KEY-trigger will result in an endless loop and most possibl your form will simply crash. Put an ENTER_QUERY in your KEY-ENTQRY-trigger. a good trigger to check the mode is the WHEN-NEW-RECORD-INSTANCE-trigger.
Thanks for your help AndreasWeiden,
I will try this. I need to check if i'm in ENTER_QUERY in a When-Validate-Item, because i have a checkbox that i need to do action if i'm in SEARCH MODE or NORMAL MODE. is it correct to check like that or i need to perform check always in the WHEN-NEW-RECORD-INSTANCE?
Hi, i have put my ENTER_QUERY in my KEY_ENTQRY-trigger, but i get error 41003.
If i leave the do_key('enter-query') i have no error and i can search.
Thanks for your help.