佳礼资讯网

 找回密码
 注册

ADVERTISEMENT

查看: 1089|回复: 2

要怎样才能把ACCESS REPORT在最后一面时候才出现我要的资料<>已经做好了^_^-v

[复制链接]
发表于 15-9-2006 01:38 PM | 显示全部楼层 |阅读模式
有什么或者要如何的CODING每当我的最后一面REPORT时候,我要的资料才跑出来。。。

我想到的LOGIC是

Private Sub Page Footer_Format(Cancel As Integer, FormatCount As Integer)

   If page++ = null Then Me![myword].Visible = false _
  end if

End Sub

请各位大大帮帮忙了

[ 本帖最后由 程家伟 于 16-9-2006 09:31 AM 编辑 ]
回复

使用道具 举报


ADVERTISEMENT

 楼主| 发表于 15-9-2006 04:12 PM | 显示全部楼层
我这个的links是不是我要的?

http://www.mcse.ms/post6480165.html

各位大大。。请看看。。不然我就要收拾兼离开了


The Report Footer will only print after the last detail record.
However, you can display the Report Footer data in the Page footer of  the last page.   
Make your report as you normally would with the Page Footer and Report  Footer.   
Make sure there is a control set to = [Page] & " of " & [Pages] in t  he  Page Footer.   
Then for each control you wish to display on the final page footer,  place an unbound control where it should display.
Set each of these controls Visible properties to No.  (Do not disturb the controls you want to normally display at the  bottom of each page.   
Next code the Report' Page Footer Format event:
If [Page] = [Pages] Then  
[PageFooterControlName1] = [ReportFooterControlName1]  
[PageFooterControlName1].Visible = True  
' Do the same for each other ReportFooter control you wish to show  in the Page Footer.
End If   

If you have other controls in the page footer that you do not wish to  display on the final page, set them to Not Visible in the Page Footer  event.   
You must leave enough Page Footer Height to print these controls.
I see no reason you can't stack these controls on top of your regular  page footer controls and turn Visible properties on and off as  required.   

Next code the Report Footer's Format event:  Cancel = True      
Then code the Report Header Format event:    [PageFooterControlName1].Visible = False  
' Do the same for each other ReportFooter control you wish to show  in the Page Footer.      

The Report Footer information should display at the bottom of the  report where the Page footer normally does.

--  Fred  Please respond only to this newsgroup.  I do not reply to personal e-mail


[ 本帖最后由 程家伟 于 15-9-2006 05:19 PM 编辑 ]
回复

使用道具 举报

 楼主| 发表于 15-9-2006 04:59 PM | 显示全部楼层
I have a text box that I only want visible on the last page of the report.
I
> am working in Access 97. Does anybody know how to do this? Thanks in advance.[/vbc
ol]

If you don't already have a control in the report computing Pages,
i.e. = "Page " & [Page] & " of " & [Pages]
add one.

Then code the Page Header format event:.

[ControlName].Visible = Me.[Page] = [Pages] <-- 这个coding 可以用得吗?

The control will display only on the last page.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

 

ADVERTISEMENT



ADVERTISEMENT



ADVERTISEMENT

ADVERTISEMENT


版权所有 © 1996-2023 Cari Internet Sdn Bhd (483575-W)|IPSERVERONE 提供云主机|广告刊登|关于我们|私隐权|免控|投诉|联络|脸书|佳礼资讯网

GMT+8, 23-9-2024 05:23 PM , Processed in 0.098551 second(s), 21 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表