,

Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

Losing Focus. (OpenInsight)

At 16 FEB 2000 05:01:42PM rayc@symmetryinfo.com wrote:

This seems like a simple thing, but it's boggling me for the moment so any hints would be appreciated.

Problem: I am losing focus when I shouldn't.

Some background: Two forms. In Form A, at the LOSTFOCUS of a control, I check to see if the item exists in another table. If exist, I display various data in a MSG with a BNY option. If the data needs to be corrected, I call Form B. At the Create Event of Form B, I read the record and do various things. This works, and when I save the changes, Form B closes and FOCUS returns to Form A.

However, if the item is new, that is, the displayed popup does not show the item and I hit the escape key the event script at LostFocus will let me add a new item. It calls Form B (essentially same code). However, the FOCUS shifts back to Form A prematurely before I can do anything in Form B. If I try to "click" Form B, nothing happens.

I know that I must be overlooking something. Any hints on what I need to look at would be apprecited.

I will also post this on the regular discussion place.

Thanks,

rayc@symmetryinfo.com onmouseover=window.status=imagine … ;return(true)"

Symmetry Info

Ray Chan ~ Symmetry Info

View this thread on the Works forum...