Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

object defined error on report - confused

Status
Not open for further replies.

ProgramError

Programmer
Mar 2, 2005
1,027
GB
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.
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.
 
PLEASE IGNORE - WRONG FORUM - SLOW COMPUTER

Ian Mayor (UK)
Program Error
Always make your words sweet and nice. Because you never know when you may have to eat them.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top