>The code below works. If the sql returns more than 1 record an ad hoc form (frmPopup) is opened containing a grid and shown modally. The user then selects a line and the forms closes gracefully.
>
>The form does not close when lPopupActiveParcels() is called from the beforerowcolumnchange event of a grid.
>
>Note that lPopup is a method of oDE.
>
>Can anybody shed some light on this?
It may be firing twice, fouling things up. Note that BRCC is the *very* last thing to fire when exiting a grid. Put some WAIT WINDs and you'll see this. Why not use ARCC instead, or even a cell Click if there's any problem with ARCC?
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.