Results 1 to 2 of 2
  1. #1
    LemonRawr is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2016
    Posts
    5

    Calculated field in Combobox Not Updating

    Hi,



    I have a combobox that is populated from a query that has a calculated field. I am trying to use an after update code to requery my combo box so that the calculated field get updated when enter in a new number. However, the calculated field in the combobox does not update with the new number until I change the record. I think I am doing it the wrong way.

    I have it setup as follows:

    Combobox name: OrderNumber
    Query Name: OrderData (has a calculated dsum field that adds up all the quantities based on the order number)


    Afterupdate_quantity code
    me.ordernumber.requery

  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,521
    If it updates correctly after you change records, you likely need to force a save of the record before the requery.

    If Me.Dirty Then Me.Dirty = False
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 8
    Last Post: 01-06-2016, 02:52 PM
  2. Replies: 2
    Last Post: 12-30-2014, 01:32 PM
  3. ComboBox not Updating Field
    By The Professor in forum Forms
    Replies: 2
    Last Post: 08-01-2014, 09:19 AM
  4. Calculated Field in Combobox
    By confusedlilly19 in forum Forms
    Replies: 1
    Last Post: 06-22-2012, 01:44 AM
  5. Replies: 4
    Last Post: 03-05-2010, 09:56 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