Results 1 to 4 of 4
  1. #1
    JackieEVSC is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Oct 2011
    Posts
    70

    After formatting field in query, it no longer accepts edits on the form

    Thanks to some help from this forum, I formatted a field to parse out apostrophe's ... DmgDesc: Replace(Nz([DamageDesc],""),"'",""). It works, but now when the information is pulled into a form, it no longer allows me to edit the field.

    We really need this field to be updatable. What would cause this? Any idea how I can fix this?

    Thanks in advance.

  2. #2
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,413
    You can't edit a derived field like that. DmgDesc doesn't exist in the table.
    In your form make the data source for your textbox equal to DamageDesc.
    In the Form_Current event:
    txtDamageDesc = Replace(Nz(txtDamageDesc,""),"'","")

    Now you can edit DamageDesc in he form, assuming the textbox holding DamageDesc is named txtDamageDesc.

  3. #3
    JackieEVSC is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Oct 2011
    Posts
    70
    Works perfectly! I would never have been able to figure that out on my own! I am VERY grateful for your help!!!!

  4. #4
    davegri's Avatar
    davegri is offline Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,413
    Glad to help. Good luck with the rest of your project.
    Last edited by davegri; 04-23-2016 at 08:38 PM. Reason: delete emoticon with lipstick!

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

Similar Threads

  1. Subform no longer accepts new records
    By RayMilhon in forum Forms
    Replies: 6
    Last Post: 04-25-2016, 05:14 PM
  2. MS Access 2010 query that accepts multiple inputs
    By DebbieAnne in forum Queries
    Replies: 12
    Last Post: 10-22-2015, 01:16 PM
  3. Printing Form that allows only certain edits.
    By Z1nkstar in forum Access
    Replies: 4
    Last Post: 07-11-2014, 08:38 AM
  4. Form won't allow edits
    By lawdy in forum Forms
    Replies: 5
    Last Post: 03-08-2014, 03:48 PM
  5. Disallow edits to saved query
    By MWMike in forum Forms
    Replies: 2
    Last Post: 03-08-2011, 09:24 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