Results 1 to 5 of 5
  1. #1
    arothacker is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2014
    Posts
    43

    Add function to bound form field?

    I have a form called "Backfill" that submits the data to a table called "Updated Headcount"

    On the form there is an ID textbox that is unbound and a Notes textbox that is bound to the Notes field in Updated Headcount.


    When the user types a value in the ID textbox, I want to concatenate "backfill" and the ID value to the Notes textbox. I then want that concatenation to submit to the Notes field in the table.

    I've tried putting ="Backfill" & ":" & [ID] in the before and after update but nothing works. I can't put it directly in the Notes textbox because then it becomes unbound.

    Any thoughts??

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    How about

    Me.NotesTextbox = Me.NotesTextbox & " Backfill" & ":" & [ID]
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    arothacker is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2014
    Posts
    43
    I actually figured it out right after I posted this! Haha I was putting the expression in the after update of the Notes field rather than the ID field.

    When I put in the After Update of the ID unbound textbox:
    Me.Notes= "Backfill" & ":" & Me.ID

    Then it worked! Thanks though!

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Glad you got it sorted. You're okay with that overwriting anything that might already be present in the notes textbox?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    arothacker is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jan 2014
    Posts
    43
    Based on what the form is used for there shouldn't be anything in the Notes section because it will be a new entry. Thanks for checking though!

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

Similar Threads

  1. Replies: 6
    Last Post: 01-30-2014, 05:57 PM
  2. Mimic a label bound to ID field on form
    By BRZ-Ryan in forum Programming
    Replies: 10
    Last Post: 01-13-2014, 10:24 PM
  3. Replies: 1
    Last Post: 04-26-2013, 05:30 PM
  4. Bound form with bound combobox
    By Jerry8989 in forum Access
    Replies: 2
    Last Post: 12-05-2011, 01:50 PM
  5. Replies: 1
    Last Post: 06-23-2010, 09:05 AM

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