It does not. The form does not have a grid. Focus is on a textbox which is directly on the form when the menu pad is selected. The form does have a pageframe which has various other controls including a listbox, but focus was on the form not the pageframe when the problem occurs. You may have guessed that the BROWSE is not critical and was only in there for testing purposes, but still it doesn't seem to be proper execution.
Thx
>Does
Forms with Grids and printing reports FAQ #15515 apply here?
>
>>Here's a strange. The following code works as you would expect:
>>
>>select tblmaster.*,tbltotals.* ;
>> FROM tblmaster ;
>> INNER JOIN tbltotals ;
>> ON tblmaster.int_id = tbltotals.int_id;
>> ORDER BY tbltotals.highcount desc ;
>> into cursor crsTempreport
>>
>>select crsTempreport
>>*brow
>>
>>report form rptbusiestintersections range 1,1 to printer prompt preview noconsole nowait
>>_screen.Visible = .f.
>>select tblmaster
>>
>>
>>however, if the commented line BROWSE is activated, the code fails with an error that suggests the cursor is no longer in the active workarea when the report is called. The specific message is that the first field of the report cannot be found. The code in question is contained in a menu.
>>
>>Any ideas as to what's at issue here?