Results 1 to 3 of 3
  1. #1
    SltPhx is offline Advanced Beginner
    Windows Vista Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    41

    Exclamation Displaying values from many control onto one control

    Hello,


    I have three text boxes in a form - I want to combine the values entered in two of the text boxes and a message onto the third text box. Ineed help in creating the third text box that should display

    = "Error Type is" [Forms]![FormName]![Control1]; "Code is" [Forms]![FormName]![Control2]

    I am not sure how to display the text as well as the values from other controls to a SINGLE control. Can we use SetProperty? If so, what is the technique? I want it to be a bound control.

    Please let me know if this is possible.

    Thank you so much for your time and help.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,628
    A control with an expression cannot be bound to a field. Why do you need it to be bound? Why not just use labels to hold the literal text?

    All 3 controls are on same form?

    Use concatenation:

    = "Error Type is " & [Control1] & " Code is " & [Control2]
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    SltPhx is offline Advanced Beginner
    Windows Vista Access 2010 32bit
    Join Date
    Jul 2011
    Posts
    41
    Awesome June7! Thank you again

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 06-28-2013, 11:15 PM
  2. Control Values
    By CementCarver in forum Forms
    Replies: 2
    Last Post: 06-15-2013, 02:50 PM
  3. Replies: 1
    Last Post: 01-06-2013, 01:47 PM
  4. Replies: 3
    Last Post: 03-29-2012, 12:40 PM
  5. Replies: 2
    Last Post: 05-13-2011, 02:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums