Results 1 to 5 of 5
  1. #1
    Jimruns919 is offline Advanced Beginner
    Windows 10 Access 2019
    Join Date
    Jun 2023
    Location
    Pennsylvania
    Posts
    32

    Update in RealTime

    I am creating a Purchase Order system and everything is working but not in real-time.

    So I entering: Item, qty, cost, and an AcctCode. The system is calculating the salestax and full price and this is a subform.



    There is a second sub form which is consolidating the account codes and then putting the total for each account code.

    Everything works, just not in real time. If I close the order then go back into, everything works but I want to have it show in real time.

    The account code and total is done with an Update Query, is there a way to have it update once I assign the account code?

  2. #2
    Edgar is offline Competent Performer
    Windows 8 Access 2016
    Join Date
    Dec 2022
    Posts
    274
    Quote Originally Posted by Jimruns919 View Post
    is there a way to have it update once I assign the account code?
    Use the right event for the job. How is the update query run night now? You mentioned you have to close and go back to see the changes, that sounds like something that can be fixed with Requery and AfterUpdate.

  3. #3
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    Hi you would need to Requery the Subform on the AfterUpdate of the Account Code.
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  4. #4
    Jimruns919 is offline Advanced Beginner
    Windows 10 Access 2019
    Join Date
    Jun 2023
    Location
    Pennsylvania
    Posts
    32
    I have tried docmd.requery ([acodetotal_qry]) for the AFTER UPDATE but it fails. I even tried putting a manual requery field in and it works but then it just goes into a loop and then crashes access.

    I am obviously missing something but I am not sure what.

  5. #5
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    HI

    In the afterUpdate of the AccountCode use this:-

    Forms![MainForm].[Subform].Form.Requery
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

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

Similar Threads

  1. Replies: 4
    Last Post: 03-09-2022, 11:28 AM
  2. Replies: 2
    Last Post: 06-21-2018, 03:16 AM
  3. Replies: 7
    Last Post: 08-26-2013, 06:05 AM
  4. Replies: 1
    Last Post: 01-22-2011, 12:23 PM
  5. DCount realtime
    By Patience in forum Access
    Replies: 2
    Last Post: 06-24-2010, 06:20 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