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  

Manipulating Command box in a access report in detail section



 
 
Thread Tools Display Modes
  #1  
Old November 25th, 2005, 09:20 PM posted to microsoft.public.access.reports
external usenet poster
 
Posts: n/a
Default Manipulating Command box in a access report in detail section

Hi,
I have a report where it accesses a query that shows category and the total
category sales. There are eight records in this query. Normally, the category
and the total category sales, if put in the detail section of a report would
produce this report. However, the way the report needs to be done is that a
command button would replace the category. Now when viewed, the command
buttons would show corresponding category names. I need to know how does one
code in such a situation where the command button caption captures the
corresponding category name when the report displays. Any help/suggestion is
highly appreciated. Thanks in advance.
  #2  
Old November 26th, 2005, 02:14 AM posted to microsoft.public.access.reports
external usenet poster
 
Posts: n/a
Default Manipulating Command box in a access report in detail section

You cannot place a working command button on a report.

Reports are desinged as printouts, and clicking a command button on a piece
of paper does not work very well. That means you will need to find another
approach.

If you are comfortable with VBA code, you could create a custom toolbar for
the report, with buttons on the toolbar that set the report's Filter
property (remembering to set FilterOn as well.)

Alternatively, you could use a popup form that floats over the report to
provide those buttons to filter the report.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Jack" wrote in message
...
Hi,
I have a report where it accesses a query that shows category and the
total
category sales. There are eight records in this query. Normally, the
category
and the total category sales, if put in the detail section of a report
would
produce this report. However, the way the report needs to be done is that
a
command button would replace the category. Now when viewed, the command
buttons would show corresponding category names. I need to know how does
one
code in such a situation where the command button caption captures the
corresponding category name when the report displays. Any help/suggestion
is
highly appreciated. Thanks in advance.



  #3  
Old November 28th, 2005, 07:50 PM posted to microsoft.public.access.reports
external usenet poster
 
Posts: n/a
Default Manipulating Command box in a access report in detail section

Thanks for your suggestions, Allen. I appreciate it.

"Allen Browne" wrote:

You cannot place a working command button on a report.

Reports are desinged as printouts, and clicking a command button on a piece
of paper does not work very well. That means you will need to find another
approach.

If you are comfortable with VBA code, you could create a custom toolbar for
the report, with buttons on the toolbar that set the report's Filter
property (remembering to set FilterOn as well.)

Alternatively, you could use a popup form that floats over the report to
provide those buttons to filter the report.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Jack" wrote in message
...
Hi,
I have a report where it accesses a query that shows category and the
total
category sales. There are eight records in this query. Normally, the
category
and the total category sales, if put in the detail section of a report
would
produce this report. However, the way the report needs to be done is that
a
command button would replace the category. Now when viewed, the command
buttons would show corresponding category names. I need to know how does
one
code in such a situation where the command button caption captures the
corresponding category name when the report displays. Any help/suggestion
is
highly appreciated. Thanks in advance.




 




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

Similar Threads
Thread Thread Starter Forum Replies Last Post
I cant get my report to fit on one page rmoritzky Setting Up & Running Reports 16 February 10th, 2009 01:35 PM
Printing Reports Access 2002 Pleas Advise Dermot Database Design 12 October 5th, 2005 11:23 AM
Skip one detail report in a report detail section? foxhsu via AccessMonster.com Setting Up & Running Reports 1 September 29th, 2005 04:20 PM
Has anyone seen this behaviour? What might it be? tw General Discussion 4 June 30th, 2005 03:23 PM
Bug in Access 2002 Reports notbitmonk Setting Up & Running Reports 10 May 22nd, 2004 05:47 PM


All times are GMT +1. The time now is 09:06 AM.


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