ProgramError
Programmer
I'm using the following code to assign a value to txtdiskno which is a textbox on a report. but I get a application-defined or object-defined error. the textbox is definately called txtdiskno and is unbound. when i do a debug.print rpt.name it gives me the correct name of the report.
Any ideas?
Ian Mayor (UK)
Program Error
Always make your words sweet and nice. Because you never know when you may have to eat them.
Any ideas?
Code:
Function LabelCopies(rpt As Report)
rpt.txtDiscNo = CopyCount&
Debug.Print rpt.txtDiscNo
If CopyCount& < (Copies& - 1) Then
rpt.NextRecord = False
CopyCount& = CopyCount& + 1
End If
Debug.Print CopyCount&
End Function
Ian Mayor (UK)
Program Error
Always make your words sweet and nice. Because you never know when you may have to eat them.