Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2003
    Location
    Ger
    Posts
    1,969
    Provided Answers: 1

    Unanswered: Changing the source of a TextBox onFly

    Hello all,
    how can I change the source of a text box in a report on the fly.
    Example:
    Accordin to a check box on a form, the user could choose to show the birthday in a text box; or to show the age for example.

    Which property of the text box in the report could be used. Thanks

  2. #2
    Join Date
    Feb 2004
    Location
    One Flump in One Place
    Posts
    14,912
    In the OnOpen event of the report:
    Code:
    If Forms!MyForm!ShowAge = True Then
    Me.TheTextBox.ControlSource = Age
    Else
    Me.TheTextBox.ControlSource = DoB
    End If
    ???
    Testimonial:
    pootle flump
    ur codings are working excelent.

  3. #3
    Join Date
    Oct 2003
    Location
    Ger
    Posts
    1,969
    Provided Answers: 1
    Thank you very much for your quick and exact answer. It functions perfectly

Posting Permissions

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