Results 1 to 2 of 2

Thread: Putting values from a variable into a text box on a Report

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 1999
    Location
    Waynesville, OH, USA
    Posts
    11

    Post

    I am working in Microsoft Access and I have been trying to create a report in which the values in the text boxes changed based on an earlier form my users filled out.

    My script:
    TextBox1 = Value1
    TextBox2 = Value2

    It gives me an error saying value cannnot be set for this type.

    Also I will need to eventually create strings in the script with the locations of fields in my query. So I will need to be able to set the text box equal to the variable holding my string.

    Any suggestions on how to fix this problem?

    Thanks

    Brett Beckett
    [email protected]

  2. #2
    Lively Member
    Join Date
    Jan 1999
    Posts
    81

    Post

    You would have better luck doing it like this.

    text1.text = val(value) this returns the value of the string and not the string. You wont haft to worry about the data type.

    Hope this helps.

    Brooke Hostmeyer
    Vijon Labs Inc.

Posting Permissions

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



Click Here to Expand Forum to Full Width