I have a report with 3 fields printing inside of text boxes and 3 more boxes next to them in the detail part of my report...
It should look something like this
HR Mary 123 ____ ____ _____
MIS JOHN 456 _____ ____ _____
FINANCE PETER 789 _____ ____ ____
ACCTNG GINA 109 ____ ____ ____
SUPPORT SUSAN 347 ____ ____ ____
I would like to know how to force 5 blank recs if the number of recs per group is less than 5. I have a Runningsum which tells me already how many recs are in each group. (If the group does'nt have enough detail to fill the page then print blank boxes). My report is running off a query which is correct..I verified the data ..There are no duplicate recs..this is not why the names appear over and over.
I think I need code to tell it to count the number of recs...if it's less than 5 then fill the detail with blank recs (wherever the dept,name and id would go) along with the boxes... right now having the name and boxes prints something like this (WHERE each _____ represents a box.)
HR Mary 123 ____ ____ _____
HR Mary 123 _____ ____ _____
HR Mary 123 _____ ____ ____
HR Mary 123 ____ ____ ____
HR Mary 123 ____ ____ ____
I added this VBA code but I get an error Run Time 348
“Object doesn’t support this property or method.”
It does’nt seem to like the ME!NEWDEPT.visible=False
Any suggestions???
Please help !.. this is my first time writing an Access report
It should look something like this
HR Mary 123 ____ ____ _____
MIS JOHN 456 _____ ____ _____
FINANCE PETER 789 _____ ____ ____
ACCTNG GINA 109 ____ ____ ____
SUPPORT SUSAN 347 ____ ____ ____
I would like to know how to force 5 blank recs if the number of recs per group is less than 5. I have a Runningsum which tells me already how many recs are in each group. (If the group does'nt have enough detail to fill the page then print blank boxes). My report is running off a query which is correct..I verified the data ..There are no duplicate recs..this is not why the names appear over and over.
I think I need code to tell it to count the number of recs...if it's less than 5 then fill the detail with blank recs (wherever the dept,name and id would go) along with the boxes... right now having the name and boxes prints something like this (WHERE each _____ represents a box.)
HR Mary 123 ____ ____ _____
HR Mary 123 _____ ____ _____
HR Mary 123 _____ ____ ____
HR Mary 123 ____ ____ ____
HR Mary 123 ____ ____ ____
I added this VBA code but I get an error Run Time 348
“Object doesn’t support this property or method.”
It does’nt seem to like the ME!NEWDEPT.visible=False
Code:
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
If Me.RSUM1 < 5 Then
Ptot = 5 - Me.RSUM1
Psum = 1
Do
Me!NEWDEPT.Visible = False
Me!NAME.Visible = False
Me!EMPLID.Visible = False
Me!MoveLayout = True
Me.PrintSection = True
Psum = Psum + 1
Loop Until Psum > Ptot
End If
End Sub
Any suggestions???
Please help !.. this is my first time writing an Access report