Hi guys,
I have a report with a subreport...
One of the fields in the subreport is a boolean field called 'Printed'
I've tried setting this field to 'True' in the OnPrint and On Format events of the detail section (which is where the 'Printed' field is placed) but I keep getting an Error 2448 message aka 'You can't assign a value to this object'...
Code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Me!Printed = True
End Sub
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
Me!Printed = True
End Sub
How can I set a field in the subreport to true after it is printed?
Many thanks in advance
dazza61
I have a report with a subreport...
One of the fields in the subreport is a boolean field called 'Printed'
I've tried setting this field to 'True' in the OnPrint and On Format events of the detail section (which is where the 'Printed' field is placed) but I keep getting an Error 2448 message aka 'You can't assign a value to this object'...
Code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Me!Printed = True
End Sub
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
Me!Printed = True
End Sub
How can I set a field in the subreport to true after it is printed?
Many thanks in advance
dazza61