你可能描述的有问题。
正确的应该是:在list1中做出选择,点击command1,在grid1的显示查询的结果。
command1.click()
select orderuid,tablenum,orderphone,ordertime ;
from ordern where orderid=alltrim(thisform.list1.value);
into cursor temp1
thisform.grid1.recordsource="temp1"
thisform.grid1.refresh()