Why do you need the empty lines?I want to modify the sorting in the attached report.
When grouping is applied, empty rows appear at the top.
I would like this to be adjusted so they display correctly.
Thanks
Help us understand the request by specifying the sort order you want to apply.I want to modify the sorting in the attached report.
When grouping is applied, empty rows appear at the top.
I would like this to be adjusted so they display correctly.
Thanks
I think the goal is to create 26 lines on the report per group, regardless of how many records are in each group.Why do you need the empty lines?
I Imported the database into a new database and then applied Descending OrderI want to modify the sorting in the attached report.
When grouping is applied, empty rows appear at the top.
I would like this to be adjusted so they display correctly.
Thanks
Hi GeorgeI think the goal is to create 26 lines on the report per group, regardless of how many records are in each group.
I'm partly guessing based on the use of the const in the VBA and the presence of the talley table. I've been wrong before, though.Hi George
Ithink that is beyond my knowledge, but would appear pointless to me.
My thoughts as well.I think the goal is to create 26 lines on the report per group, regardless of how many records are in each group.
SELECT YourTable.ID, YourTable.OrderNumber, YourTable.StopNumber, YourTable.CustomerName, YourTable.PONumber, YourTable.ItemNumber, YourTable.ModelNumber
FROM YourTable;
I have that all the time.your record source is a table name with no field names.
SELECT *
FROM Yourtable
UNION
SELECT A, B, C, D
FROM Yourtable
SELECT yourTable.*
FROM yourTable
UNION
SELECT Null, Null, Null, Null, Null, Null,Null
FROM YourTable;
So why is Max_Lines 26?Blank rows are only used to pad the bottom of each page to reach 20 rows
The behavior should be page-based, not group-based:
- Groups should flow naturally across pages.
- If a page ends with fewer than 20 records (for example, 15), the remaining rows on that same page should be blank.
- If the records (across groups) exceed 20, the report continues onto the next page and the same rule applies.
- Blank rows should never appear at the top of a page.
- Blank rows should never appear between records or between groups.
- Blank rows are only used to pad the bottom of each page to reach 20 rows.
The goal is consistent printing, not padding per group.
Dim intCounter As Integer
Private Sub GroupHeader0_Format(Cancel As Integer, FormatCount As Integer)
If FormatCount = 1 Then
intCounter = 1
End If
End Sub
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If FormatCount = 1 Then
intCounter = intCounter + 1
If intCounter > 20 Then
intCounter = 0
Me.PageBreak.Visible = True
Else
Me.PageBreak.Visible = False
End If
End If
End Sub