The Orders form has two base table blocks and a control block. There is an Execute Query button in the control block with the following When-Button-Pressed trigger:
DO_KEY(‘execute_query);
A user navigates to the Order Items block and clicks Execute Query. The query does not execute, but instead returns error FRM-41003: "This function cannot be performed here".
What can you do to fix this error?
A.
Define a Key-Exeqry trigger at the form level.
B.
Set the Mouse Navigate property to No for the Execute Query button.
C.
Set the Query All Records property to Yes for the Order Items block.
D.
Set the Query Allowed property to Yes for at least one item in the Order Items block.