Results 1 to 3 of 3
  1. #1
    libraccess's Avatar
    libraccess is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2012
    Location
    Napier New Zealand
    Posts
    129

    SubForm Update

    I have a continuous subform that has a calculated field ( a running total)
    At the moment this calculation does not happen until I enter the next row (record)


    Now I thought it would be clever to avoid the Ctrl Tab to exit to have a button as the last control so Tab moves to the next row Enter Exits. Works Well
    I want to update the calc field I tried this (tried it on the control (SubVol) that Im calcing on) and then on the exit button

    Private Sub btnNewRec_GotFocus()
    Forms!frmMainDel!frmSubDel.Requery
    End Sub
    And I receive this - you must save the current field before you requery
    help please

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,945
    Try doing the save just before requery:

    DoCmd.RunCommand acCmdSaveRecord
    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
    libraccess's Avatar
    libraccess is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2012
    Location
    Napier New Zealand
    Posts
    129
    Done!!!
    SuperModerator is Not enough
    I'd rename you SupercalifragisticExtremerator

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

Similar Threads

  1. Update Inventory in Subform
    By Kevo in forum Forms
    Replies: 1
    Last Post: 08-29-2011, 01:27 PM
  2. Update field in Subform
    By j2curtis64 in forum Forms
    Replies: 5
    Last Post: 04-06-2011, 07:12 PM
  3. Update Subform Recordsource
    By mystifier in forum Forms
    Replies: 8
    Last Post: 11-15-2010, 03:03 AM
  4. Update field in table after update on a subform
    By jpkeller55 in forum Queries
    Replies: 3
    Last Post: 09-30-2010, 08:02 PM
  5. update field from one subform to another
    By bluezidane in forum Programming
    Replies: 3
    Last Post: 08-20-2010, 07:54 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