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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|
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 |