WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Creating a report that show limited numbers of record.

 
   Home -> Office other -> Reports RSS
Next:  Cry For Help  
Author Message
JoyJoy329

External


Since: Sep 05, 2008
Posts: 3



(Msg. 1) Posted: Fri Sep 05, 2008 1:03 am
Post subject: Creating a report that show limited numbers of record.
Archived from groups: microsoft>public>access>reports (more info?)

I'm a self learn Access Beginner and currently I'm creating a database for my
company that needs to create a report that shows 23 records per-page. and in
the same time, once the page are over, i what to show the page heading
again.. can anyone help me with this? (the report is created base on a query
that allows the us to input the period of days we wants to show in the
report. eg. input 7= from today - a week later, what we have to delivery to
the customer.
Back to top
Login to vote
Duane Hookom

External


Since: Feb 07, 2005
Posts: 3294



(Msg. 2) Posted: Fri Sep 05, 2008 10:12 am
Post subject: RE: Creating a report that show limited numbers of record. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

If you always want a page break after 23 records, you can try:
Add a page break control at the bottom of the detail section
Name the page break control "PgBrk"
Add a text box to the detail section of the report:
Name: txtCount
Control Source: =1
Running Sum: Over All
Visible: No
Then add code to the On Format event of the detail section:
Me.PgBrk.Visible = (Me.txtCount Mod 23 = 0)

--
Duane Hookom
Microsoft Access MVP


"JoyJoy329" wrote:

> I'm a self learn Access Beginner and currently I'm creating a database for my
> company that needs to create a report that shows 23 records per-page. and in
> the same time, once the page are over, i what to show the page heading
> again.. can anyone help me with this? (the report is created base on a query
> that allows the us to input the period of days we wants to show in the
> report. eg. input 7= from today - a week later, what we have to delivery to
> the customer.
Back to top
Login to vote
JoyJoy329

External


Since: Sep 05, 2008
Posts: 3



(Msg. 3) Posted: Fri Sep 05, 2008 8:18 pm
Post subject: RE: Creating a report that show limited numbers of record. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Duane,
I did able to do what you stated in the thread. but as soon as i try to see
the actual report, access keeps telling me that the function me can't be find
and open "me"

"Duane Hookom" wrote:

> If you always want a page break after 23 records, you can try:
> Add a page break control at the bottom of the detail section
> Name the page break control "PgBrk"
> Add a text box to the detail section of the report:
> Name: txtCount
> Control Source: =1
> Running Sum: Over All
> Visible: No
> Then add code to the On Format event of the detail section:
> Me.PgBrk.Visible = (Me.txtCount Mod 23 = 0)
>
> --
> Duane Hookom
> Microsoft Access MVP
>
>
> "JoyJoy329" wrote:
>
> > I'm a self learn Access Beginner and currently I'm creating a database for my
> > company that needs to create a report that shows 23 records per-page. and in
> > the same time, once the page are over, i what to show the page heading
> > again.. can anyone help me with this? (the report is created base on a query
> > that allows the us to input the period of days we wants to show in the
> > report. eg. input 7= from today - a week later, what we have to delivery to
> > the customer.
Back to top
Login to vote
Duane Hookom

External


Since: Feb 07, 2005
Posts: 3294



(Msg. 4) Posted: Sat Sep 06, 2008 6:10 am
Post subject: RE: Creating a report that show limited numbers of record. [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I expect you entered a line of code into the Property of the On Format. I
should have been more clear that the Me.PgBrk.Visible .... goes into the
module of the report. The actual property should state:
On Format: [Event Procedure]
You can then click the [...] button to the right of the property to open the
code window. That is where you enter the Me.PgBrk.Visible....

Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Me.PgBrk.Visible = (Me.txtCount Mod 23 = 0)
End Sub


--
Duane Hookom
Microsoft Access MVP


"JoyJoy329" wrote:

> Hi Duane,
> I did able to do what you stated in the thread. but as soon as i try to see
> the actual report, access keeps telling me that the function me can't be find
> and open "me"
>
> "Duane Hookom" wrote:
>
> > If you always want a page break after 23 records, you can try:
> > Add a page break control at the bottom of the detail section
> > Name the page break control "PgBrk"
> > Add a text box to the detail section of the report:
> > Name: txtCount
> > Control Source: =1
> > Running Sum: Over All
> > Visible: No
> > Then add code to the On Format event of the detail section:
> > Me.PgBrk.Visible = (Me.txtCount Mod 23 = 0)
> >
> > --
> > Duane Hookom
> > Microsoft Access MVP
> >
> >
> > "JoyJoy329" wrote:
> >
> > > I'm a self learn Access Beginner and currently I'm creating a database for my
> > > company that needs to create a report that shows 23 records per-page. and in
> > > the same time, once the page are over, i what to show the page heading
> > > again.. can anyone help me with this? (the report is created base on a query
> > > that allows the us to input the period of days we wants to show in the
> > > report. eg. input 7= from today - a week later, what we have to delivery to
> > > the customer.
Back to top
Login to vote
Display posts from previous:   
       Home -> Office other -> Reports All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
 Office
  Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET