福建省计算机二级考试设计题答案.pdf

想预览更多内容,点击预览全文

申明敬告:

本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己完全接受本站规则且自行承担所有风险,本站不退款、不进行额外附加服务;如果您已付费下载过本站文档,您可以点击这里二次下载

文档介绍

提示:作为设计题的第 2 题,一般地,做题前可以先试运行表单,其次要查看并了解数据

环境中的表。

&&表格显示的数据由2 个属性决定:recordsourceType 和recordsource

&&注意到recordsourceType 已经设置为4-查询,这里只需要设置recordsource 属性即可

bmh=alltrim(thisform.text1.value)

nd=alltrim(thisform.text2.value)

thisform.grid1.recordsource="select xsb.商品号,商品名,上半年利润, ;

下半年利润,上半年利润+下半年利润 from xsb,spdmb ;

where xsb.商品号=spdmb.商品号 and ;

部门号=bmh and 年度=nd into cursor tmp"

thisform.refresh

if thisform.optiongroup1.value=1 select 职员号,avg(金额) as 平均金额 from orders ; group by 职员号 order by 2 into table px_a

else select 职员号,avg(金额) as 平均金额 from orders ; 1 group by 职员号 order by 2 desc into table px_d

endif

if thisform.optiongroup1.value=1 thisform.grid1.recordsource="select 客户号,count(*), ; sum(金额) from orders group by 客户号 ; into cursor tmp"

endif

if thisform.

最近下载