Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2002
    Posts
    2

    Unanswered: Changing caption on label in report

    Hi,

    I have a form with a combo box on it, and this form is linked to a report.
    Depending on what the value in the combo box is, I have 3 different possible captions I need to put on one of the labels on the report.

    Is there any easy way to change the caption property of a label on report open? (I can't seem to access the label.caption property in the report open event procedure)

    Thanks in advance,
    Behrouz

  2. #2
    Join Date
    Oct 2002
    Location
    NSW Australia
    Posts
    61
    Try putting your code in the OnFormat or OnPage of the report event.

  3. #3
    Join Date
    Oct 2002
    Posts
    2
    Hmmm... my original problem was that when i wrote the label's name followed by ".", i.e. label112. , the popup menu that gave me the list of possible properties I can input didn't include the caption property. But if I "forced" it (wrote it myself), VB still changed the caption. This worked in the On Page event, I didn't try it in form open.

    Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •