Results 1 to 8 of 8
  1. #1
    louise is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Apr 2015
    Posts
    112

    How to edit a copy of a text field while maintaining the unaltered original

    Hello,
    I have a field for a "course description". I would like the user to view that course description on a form and then have the same text appear beside it, under another field name, and be able to edit that copy (if necessary) without altering the original.



    The same process would be repeated a number of other times -- Course title, presenter bio, etc.

    Can you give me some ideas about how to set this up?

    Thanks very much!
    Noreen

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    This is a new one!

    Would require code to populate an unbound textbox with the existing value. What do you want to happen with the edited text in the unbound textbox?
    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
    louise is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Apr 2015
    Posts
    112
    Thank you for your prompt reply!

    I want to save the newly edited text in a field in a table, which is there but currently empty. In other words, bind the unbound textbox to another field.

    (A bit of my reasoning, we want to be able to edit/shorten and save submitted course descriptions -- but still have the original submission, in case the someone (e.g., the submitter) doesn't like the editing and we have to start over. So: original field name: Description edited description name: ShortDescription)

    thanks!

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Okay, then exactly what is issue? Bind textboxes to the two fields.

    If you want to be able to see existing ShortDescription as well as user edits of that value, back to the unbound textbox and code to save the edited version to replace the old ShortDescription.

    Or try textbox zoom: http://www.dbforums.com/showthread.p...-text-box-zoom

    Regardless, at some point the original value in a field gets replaced and is lost. Unless you want to do something like an audit log http://allenbrowne.com/AppAudit.html.
    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.

  5. #5
    louise is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Apr 2015
    Posts
    112
    Hello,
    I don't see the latest reply to my question here, but with that suggestion, I solved the problem:
    I included both fields as bound textboxes in the form: the [OriginalText] and the [TextToEdit].
    In the form's "On Current" I entered this line of code:
    If IsNull (Me!TextToEdit) Then Me.TextToEdit = Me.OriginalText

    Thanks, June7! (I don't see how to mark this as solved, but it is.)

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    I probably edited post after you read it.

    Thread was in a forum (Forum Suggestions) that doesn't allow threads to be marked solved.

    Thread Tools dropdown above first post.
    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.

  7. #7
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Quote Originally Posted by louise View Post

    I would like the user to view that course description on a form and then have the same text appear beside it...and be able to edit that copy...without altering the original...

    ...The same process would be repeated a number of other times...
    Do you only want to store the last two descriptions, submitted, or if the description has been revised 5 times do you want to store all 6 versions, which is to say the original description plus the 5 revisions?

    Linq ;0)>
    The problem with making anything foolproof...is that fools are so darn ingenious!

    All posts/responses based on Access 2003/2007

  8. #8
    louise is offline Competent Performer
    Windows 7 64bit Access 2013
    Join Date
    Apr 2015
    Posts
    112
    Quote Originally Posted by Missinglinq View Post
    Do you only want to store the last two descriptions, submitted, or if the description has been revised 5 times do you want to store all 6 versions, which is to say the original description plus the 5 revisions?

    Linq ;0)>
    I am happy to say that I only need one revision and the original!
    Thanks

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

Similar Threads

  1. Replies: 6
    Last Post: 01-29-2015, 10:58 AM
  2. Replies: 4
    Last Post: 07-22-2013, 10:46 AM
  3. Write "Edit List Items.." data back to original form.
    By ngahm in forum Database Design
    Replies: 33
    Last Post: 02-27-2012, 06:54 PM
  4. Edit record in form with original entry shown
    By erknoebe in forum Access
    Replies: 5
    Last Post: 09-29-2010, 02:33 PM
  5. Replies: 1
    Last Post: 03-13-2010, 08:38 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