Re: Keeping "Header Item" and Total on the Same Line?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



One possible way is to include Vendor Name and Total of Invoices in the group header.

Add a new control to your detail section.
-- Name it txtCountLines
-- Set its record source to =1
-- Set its Running sum to over group

In the detail section's format event
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Me.Section(acDetail).Visible = me.txtCountLines <> 1
End Sub

John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County

croy wrote:
I vaguely remember someone here having a trick in Access
where a header item and the first row of the details could
be on the same line... but I can't remember what it was, or
even what to call it so I can search for it!

Currently, I have a very simple report that pulls in invoice
totals and vendors, and shows the total for each vendor
(since a parameter date).

It would be really nice to just show:

[VendorName], [Total of Invoices]

... without a lot of extra line spacing.

As it is now, it's more like:

[VendorName]

[Total of Invoices]

... and it takes a lot of pages.

The trick?

.



Relevant Pages

  • RE: Allocate payments
    ... Sumis simply the total of all payments made ... Sumtotals all of the original invoice values above the row in ... I have a list of unpaid invoices in two columns. ... Normally payments would be allocated to the oldest debt at the top and ...
    (microsoft.public.excel.misc)
  • Re: JOIN not returning desired value, please help!
    ... > it into a situation where vendor is included. ... > totals table to consider vendor. ... but my goal is to be able to show the vendor's sales compared ... > I'm writing a query that summarizes some data and compares it to other ...
    (microsoft.public.sqlserver.programming)
  • Re: summarize multiple worksheets using VBA
    ... I assumed each vendor sheet ... Dim ws As Worksheet ... I sum up the totals for the 8 cost/price ...
    (microsoft.public.excel.programming)
  • Re: Help with SPROC from .asp please...
    ... > retrieve information on overdue invoices depending upon the payment type ... I then only show one record per customer in the datagrid ... > with the totals for total amount invoiced, ... > line which allows the totalled rows to have a data field showing the total ...
    (microsoft.public.dotnet.framework.adonet)
  • Help with SPROC from .asp please...
    ... retrieve information on overdue invoices depending upon the payment type for ... I then only show one record per customer in the datagrid ... with the totals for total amount invoiced, ... line which allows the totalled rows to have a data field showing the total ...
    (microsoft.public.dotnet.framework.adonet)