A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Report



 
 
Thread Tools Display Modes
  #1  
Old April 19th, 2010, 05:17 PM posted to microsoft.public.access.reports
Per Erik
external usenet poster
 
Posts: 15
Default Report

Hey! First, sorry my bad English!
I have created a results page of a report in Access 2007.
I want to make a mark AFTER the first third of the report. So if there are
33 participants, I would like it to be characterized by the eleventh. Is this
possible in a report?
Hope someone can help me with this!
  #2  
Old April 19th, 2010, 06:14 PM posted to microsoft.public.access.reports
Duane Hookom
external usenet poster
 
Posts: 7,177
Default Report

Assuming you have a control named "Mark" that you want to make visible....

Add a text box to the Report Header section:
Name: txtCountAll
Control Source: =Count(*)
Add a text box to the detail section:
Name: txtRunCount
Control Source: =1
Running Sum: Over All
Visible: No
Add code to the On Format of the detail section:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Me.Mark.Visible = (Me.txtRunCount Mod Me.txtCountAll \ 3 = 0)
End Sub

--
Duane Hookom
Microsoft Access MVP


"Per Erik" wrote:

Hey! First, sorry my bad English!
I have created a results page of a report in Access 2007.
I want to make a mark AFTER the first third of the report. So if there are
33 participants, I would like it to be characterized by the eleventh. Is this
possible in a report?
Hope someone can help me with this!

  #3  
Old April 26th, 2010, 06:52 PM posted to microsoft.public.access.reports
Per Erik
external usenet poster
 
Posts: 15
Default Report

I have created a results page of a report in Access 2007.
I want to make a "sign" - like: **** - AFTER the first third of the report. So if there are
33 participants, I would like it to be characterized by the eleventh. Is this
possible in a report?
Hope someone can help me with this!


"Duane Hookom" wrote:

Assuming you have a control named "Mark" that you want to make visible....

Add a text box to the Report Header section:
Name: txtCountAll
Control Source: =Count(*)
Add a text box to the detail section:
Name: txtRunCount
Control Source: =1
Running Sum: Over All
Visible: No
Add code to the On Format of the detail section:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Me.Mark.Visible = (Me.txtRunCount Mod Me.txtCountAll \ 3 = 0)
End Sub

--
Duane Hookom
Microsoft Access MVP


"Per Erik" wrote:

Hey! First, sorry my bad English!
I have created a results page of a report in Access 2007.
I want to make a mark AFTER the first third of the report. So if there are
33 participants, I would like it to be characterized by the eleventh. Is this
possible in a report?
Hope someone can help me with this!

  #4  
Old April 27th, 2010, 02:58 AM posted to microsoft.public.access.reports
Duane Hookom[_4_]
external usenet poster
 
Posts: 316
Default Report

Is there still a question here?

--
Duane Hookom
MS Access MVP


"Per Erik" wrote in message
...
I have created a results page of a report in Access 2007.
I want to make a "sign" - like: **** - AFTER the first third of the
report. So if there are
33 participants, I would like it to be characterized by the eleventh.
Is this
possible in a report?
Hope someone can help me with this!


"Duane Hookom" wrote:

Assuming you have a control named "Mark" that you want to make
visible....

Add a text box to the Report Header section:
Name: txtCountAll
Control Source: =Count(*)
Add a text box to the detail section:
Name: txtRunCount
Control Source: =1
Running Sum: Over All
Visible: No
Add code to the On Format of the detail section:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Me.Mark.Visible = (Me.txtRunCount Mod Me.txtCountAll \ 3 = 0)
End Sub

--
Duane Hookom
Microsoft Access MVP


"Per Erik" wrote:

Hey! First, sorry my bad English!
I have created a results page of a report in Access 2007.
I want to make a mark AFTER the first third of the report. So if there
are
33 participants, I would like it to be characterized by the eleventh.
Is this
possible in a report?
Hope someone can help me with this!


  #5  
Old April 29th, 2010, 08:30 PM posted to microsoft.public.access.reports
Per Erik
external usenet poster
 
Posts: 15
Default Report

Yes, I did not get it to work. So I have tried to elaborate on what I want. I
apologize for language difficulties, and appreciate that you are trying to
help me!
I have Created a results page of a report in Access 2007.
I want to make a "sign" or a new line - like: **** - AFTER the first third of the
Report. So if there are 33 participants, I Would like it to Be characterized after the eleventh.


Per Erik


"Duane Hookom" wrote:

Is there still a question here?

--
Duane Hookom
MS Access MVP


"Per Erik" wrote in message
...
I have created a results page of a report in Access 2007.
I want to make a "sign" - like: **** - AFTER the first third of the
report. So if there are
33 participants, I would like it to be characterized by the eleventh.
Is this
possible in a report?
Hope someone can help me with this!


"Duane Hookom" wrote:

Assuming you have a control named "Mark" that you want to make
visible....

Add a text box to the Report Header section:
Name: txtCountAll
Control Source: =Count(*)
Add a text box to the detail section:
Name: txtRunCount
Control Source: =1
Running Sum: Over All
Visible: No
Add code to the On Format of the detail section:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Me.Mark.Visible = (Me.txtRunCount Mod Me.txtCountAll \ 3 = 0)
End Sub

--
Duane Hookom
Microsoft Access MVP


"Per Erik" wrote:

Hey! First, sorry my bad English!
I have created a results page of a report in Access 2007.
I want to make a mark AFTER the first third of the report. So if there
are
33 participants, I would like it to be characterized by the eleventh.
Is this
possible in a report?
Hope someone can help me with this!


  #6  
Old April 29th, 2010, 09:38 PM posted to microsoft.public.access.reports
Per Erik
external usenet poster
 
Posts: 15
Default Report

Like this:
NR. NAVN KLUBB VEKT
1 Jim Bekken Raufjøringen 9510 gr.
2 Thomas Ødergård Gjøvik og Toten SFK 8105 gr.
3 Kenneth Ottosen Gjøvik og Toten SFK 5440 gr.
4 Jørgen Langerud Raufjøringen 5245 gr.
5 Ove Lauten Gjerdrum 4745 gr.
****
6 Per E. Hellerud Eidsvoll JFF 4625 gr.
7 Frank Hønsen Gjerdrum SFK 4525 gr.
8 Odd Henning Hansen Gjøvik og Toten SFK 4505 gr.
9 Johnny Ulsrudstuen Gjøvik og Toten SFK 4255 gr.
10 Anders Wold Oslo Sportsfiske 3780 gr.
11 Tom Pedersen Gjøvik og Toten SFK 3325 gr.
12 Eric Olstad Toten JFF Lodd 2 3040 gr.
13 Geir Lillejordet Gjøvik og Toten SFK 2735 gr.
14 Remi A. Olsen SFK Pimpel Sør 2540 gr.
15 Paal Runden Gjøvik og Toten SFK 2495 gr.

"Per Erik" wrote:

Hey! First, sorry my bad English!
I have created a results page of a report in Access 2007.
I want to make a mark AFTER the first third of the report. So if there are
33 participants, I would like it to be characterized by the eleventh. Is this
possible in a report?
Hope someone can help me with this!

  #7  
Old April 30th, 2010, 04:29 AM posted to microsoft.public.access.reports
Duane Hookom[_4_]
external usenet poster
 
Posts: 316
Default Report

It would help if you told us wasn't working. What are your results? If the
controls are all visible, what do you see?

My suggestion show have displayed the control named Mark every 1/3 of the
record count. I think you need to change the code to:


Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Me.Mark.Visible = (Me.txtRunCount = Me.txtCountAll \ 3
End Sub

--
Duane Hookom
MS Access MVP


"Per Erik" wrote in message
...
Like this:
NR. NAVN KLUBB VEKT
1 Jim Bekken Raufjøringen 9510 gr.
2 Thomas Ødergård Gjøvik og Toten SFK 8105 gr.
3 Kenneth Ottosen Gjøvik og Toten SFK 5440 gr.
4 Jørgen Langerud Raufjøringen 5245 gr.
5 Ove Lauten Gjerdrum 4745 gr.
****
6 Per E. Hellerud Eidsvoll JFF 4625 gr.
7 Frank Hønsen Gjerdrum SFK 4525 gr.
8 Odd Henning Hansen Gjøvik og Toten SFK 4505 gr.
9 Johnny Ulsrudstuen Gjøvik og Toten SFK 4255 gr.
10 Anders Wold Oslo Sportsfiske 3780 gr.
11 Tom Pedersen Gjøvik og Toten SFK 3325 gr.
12 Eric Olstad Toten JFF Lodd 2 3040 gr.
13 Geir Lillejordet Gjøvik og Toten SFK 2735 gr.
14 Remi A. Olsen SFK Pimpel Sør 2540 gr.
15 Paal Runden Gjøvik og Toten SFK 2495 gr.

"Per Erik" wrote:

Hey! First, sorry my bad English!
I have created a results page of a report in Access 2007.
I want to make a mark AFTER the first third of the report. So if there
are
33 participants, I would like it to be characterized by the eleventh. Is
this
possible in a report?
Hope someone can help me with this!


  #8  
Old April 30th, 2010, 03:20 PM posted to microsoft.public.access.reports
Per Erik
external usenet poster
 
Posts: 15
Default Report

The controls are visible in all the lines, not only in the 1/3.

"Duane Hookom" wrote:

It would help if you told us wasn't working. What are your results? If the
controls are all visible, what do you see?

My suggestion show have displayed the control named Mark every 1/3 of the
record count. I think you need to change the code to:


Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Me.Mark.Visible = (Me.txtRunCount = Me.txtCountAll \ 3
End Sub

--
Duane Hookom
MS Access MVP


"Per Erik" wrote in message
...
Like this:
NR. NAVN KLUBB VEKT
1 Jim Bekken Raufjøringen 9510 gr.
2 Thomas Ødergård Gjøvik og Toten SFK 8105 gr.
3 Kenneth Ottosen Gjøvik og Toten SFK 5440 gr.
4 Jørgen Langerud Raufjøringen 5245 gr.
5 Ove Lauten Gjerdrum 4745 gr.
****
6 Per E. Hellerud Eidsvoll JFF 4625 gr.
7 Frank Hønsen Gjerdrum SFK 4525 gr.
8 Odd Henning Hansen Gjøvik og Toten SFK 4505 gr.
9 Johnny Ulsrudstuen Gjøvik og Toten SFK 4255 gr.
10 Anders Wold Oslo Sportsfiske 3780 gr.
11 Tom Pedersen Gjøvik og Toten SFK 3325 gr.
12 Eric Olstad Toten JFF Lodd 2 3040 gr.
13 Geir Lillejordet Gjøvik og Toten SFK 2735 gr.
14 Remi A. Olsen SFK Pimpel Sør 2540 gr.
15 Paal Runden Gjøvik og Toten SFK 2495 gr.

"Per Erik" wrote:

Hey! First, sorry my bad English!
I have created a results page of a report in Access 2007.
I want to make a mark AFTER the first third of the report. So if there
are
33 participants, I would like it to be characterized by the eleventh. Is
this
possible in a report?
Hope someone can help me with this!


  #9  
Old May 1st, 2010, 04:52 AM posted to microsoft.public.access.reports
Duane Hookom[_4_]
external usenet poster
 
Posts: 316
Default Report

Tell us how you have your report set up including the code that is run and
which section.

--
Duane Hookom
MS Access MVP


"Per Erik" wrote in message
news
The controls are visible in all the lines, not only in the 1/3.

"Duane Hookom" wrote:

It would help if you told us wasn't working. What are your results? If
the
controls are all visible, what do you see?

My suggestion show have displayed the control named Mark every 1/3 of the
record count. I think you need to change the code to:


Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Me.Mark.Visible = (Me.txtRunCount = Me.txtCountAll \ 3
End Sub

--
Duane Hookom
MS Access MVP


"Per Erik" wrote in message
...
Like this:
NR. NAVN KLUBB VEKT
1 Jim Bekken Raufjøringen 9510 gr.
2 Thomas Ødergård Gjøvik og Toten SFK 8105 gr.
3 Kenneth Ottosen Gjøvik og Toten SFK 5440 gr.
4 Jørgen Langerud Raufjøringen 5245 gr.
5 Ove Lauten Gjerdrum 4745 gr.
****
6 Per E. Hellerud Eidsvoll JFF 4625 gr.
7 Frank Hønsen Gjerdrum SFK 4525 gr.
8 Odd Henning Hansen Gjøvik og Toten SFK 4505 gr.
9 Johnny Ulsrudstuen Gjøvik og Toten SFK 4255 gr.
10 Anders Wold Oslo Sportsfiske 3780 gr.
11 Tom Pedersen Gjøvik og Toten SFK 3325 gr.
12 Eric Olstad Toten JFF Lodd 2 3040 gr.
13 Geir Lillejordet Gjøvik og Toten SFK 2735 gr.
14 Remi A. Olsen SFK Pimpel Sør 2540 gr.
15 Paal Runden Gjøvik og Toten SFK 2495 gr.

"Per Erik" wrote:

Hey! First, sorry my bad English!
I have created a results page of a report in Access 2007.
I want to make a mark AFTER the first third of the report. So if there
are
33 participants, I would like it to be characterized by the eleventh.
Is
this
possible in a report?
Hope someone can help me with this!


  #10  
Old May 1st, 2010, 11:17 AM posted to microsoft.public.access.reports
Per Erik
external usenet poster
 
Posts: 15
Default Report

Is it possible to send the entire database, so you can see how it is made.
I'm an amateur at Access, so it could væe much "strange" that makes this not
work!

"Duane Hookom" wrote:

Tell us how you have your report set up including the code that is run and
which section.

--
Duane Hookom
MS Access MVP


"Per Erik" wrote in message
news
The controls are visible in all the lines, not only in the 1/3.

"Duane Hookom" wrote:

It would help if you told us wasn't working. What are your results? If
the
controls are all visible, what do you see?

My suggestion show have displayed the control named Mark every 1/3 of the
record count. I think you need to change the code to:


Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Me.Mark.Visible = (Me.txtRunCount = Me.txtCountAll \ 3
End Sub

--
Duane Hookom
MS Access MVP


"Per Erik" wrote in message
...
Like this:
NR. NAVN KLUBB VEKT
1 Jim Bekken Raufjøringen 9510 gr.
2 Thomas Ødergård Gjøvik og Toten SFK 8105 gr.
3 Kenneth Ottosen Gjøvik og Toten SFK 5440 gr.
4 Jørgen Langerud Raufjøringen 5245 gr.
5 Ove Lauten Gjerdrum 4745 gr.
****
6 Per E. Hellerud Eidsvoll JFF 4625 gr.
7 Frank Hønsen Gjerdrum SFK 4525 gr.
8 Odd Henning Hansen Gjøvik og Toten SFK 4505 gr.
9 Johnny Ulsrudstuen Gjøvik og Toten SFK 4255 gr.
10 Anders Wold Oslo Sportsfiske 3780 gr.
11 Tom Pedersen Gjøvik og Toten SFK 3325 gr.
12 Eric Olstad Toten JFF Lodd 2 3040 gr.
13 Geir Lillejordet Gjøvik og Toten SFK 2735 gr.
14 Remi A. Olsen SFK Pimpel Sør 2540 gr.
15 Paal Runden Gjøvik og Toten SFK 2495 gr.

"Per Erik" wrote:

Hey! First, sorry my bad English!
I have created a results page of a report in Access 2007.
I want to make a mark AFTER the first third of the report. So if there
are
33 participants, I would like it to be characterized by the eleventh.
Is
this
possible in a report?
Hope someone can help me with this!

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:15 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.