标题:将字段值添加到报表页码前
只看楼主
foreversun
Rank: 1
等 级:新手上路
帖 子:23
专家分:0
注 册:2011-1-11
结帖率:60%
 问题点数:0 回复次数:0 
将字段值添加到报表页码前
DO case
         CASE thisform.optiongroup1.Value=1
              REPORT FORM main NOEJECT NOCONSOLE PREV
         CASE thisform.optiongroup1.Value=2
*!*                 SET FILTER TO bm=LEFT(ALLTRIM(),2)
*!*                    REPORT FORM main NOEJECT NOCONSOLE PREV
             SELECT * FROM dy where bm=LEFT(ALLTRIM(),2) INTO CURSOR lsb
             bj=ALLTRIM()
             SELECT lsb
                REPORT FORM fb NOEJECT NOCONSOLE PREV

             SET FILTER TO
         CASE thisform.optiongroup1.Value=3
            LOCATE for ae=ALLTRIM(thisform.text2.Value)
            IF !EOF()
               SET FILTER TO ae=ALLTRIM(thisform.text2.Value)
                 REPORT FORM main NOEJECT NOCONSOLE PREV
               SET FILTER TO   
            ELSE
               MESSAGEBOX('未找到你填写的身份证号相对应的记录!',16,'错误')
            endif
     endcase
以上代码想实现的功能是在打印报表时将班级添加到报表下的页码边:附件中的图片点击 校对打印
但是不能将班级如01加入到页前面

 
搜索更多相关主题的帖子: where 
2011-01-13 11:01



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-331025-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.022021 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved