Results 1 to 3 of 3
  1. #1
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 7 64bit Access 2003
    Join Date
    Feb 2011
    Posts
    1,919

    Completing Table updates

    Form A has as its RecordSource a query based on the fields of Table A.

    Form B has as its RecordSource a query based on the fields of Table B. (The two queries are exclusive of each other. I.e., NOT union queries)



    Form B has in its code sheet Dlookups of fields contained in Table B.

    Form A has amongst its command buttons a command button to open Form B.

    Form A has in all likeliness updated text-boxes bound to fields in its RecordSource, notably the very fields Form B will execute DLookups upon.

    Finally, the question is what needs to be executed in Form A prior to launching Form B that will force completion of any updating to fields in Form A's RecordSource?

    Thanks,
    Bill

  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
    Sounds like:

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

  3. #3
    GraeagleBill's Avatar
    GraeagleBill is offline Experienced Old Geezer
    Windows 7 64bit Access 2003
    Join Date
    Feb 2011
    Posts
    1,919
    Paul,
    That seems to have done the job.
    While the original post is accurate, as far as it goes, I find a bit of a ripple with regards to how and when the table record is referenced. As described, Form B is the form opened from Form A. However, Form B has two sub-forms, one of which is where the error seemed to originate, I'll call that sub-form "B/S". "B/S" has 6 text-boxes whose display "Fore Colors" are determined with "Conditional Formatting". It is in the "Conditional Formatting" that a function is employed in the code sheet of sub-form "B/S" to test the status of table fields that are a part of the "ControlSource" of Form A. I added your suggestion "If Me.Dirty Then Me.Dirty = False" just before the DoCmd.Openform of Form B. I tested the app several times making changes to the fields discussed here immediately before hitting the command button that launches Form B.

    As usual, you're help is greatly appreciated.
    Bill

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

Similar Threads

  1. Replies: 1
    Last Post: 09-15-2012, 08:22 AM
  2. Form no longer updates table; what'd I do?
    By SevenSignz in forum Forms
    Replies: 8
    Last Post: 03-04-2012, 12:25 PM
  3. Replies: 1
    Last Post: 12-17-2011, 02:42 PM
  4. Replies: 2
    Last Post: 03-29-2010, 11:52 AM
  5. Replies: 1
    Last Post: 03-29-2010, 04:11 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