Results 1 to 4 of 4

Thread: refresh a form from a different form

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2005
    Posts
    5

    refresh a form from a different form

    Hi

    An action on a form causes new records to get written which are displayed in a different form in the same db.

    After performing the action I navigate to the second form where the records should be displayed and they are not visible. I have to force a system refresh by removing all filters (even though none are active) to make the records visible.

    In the code that writes the records I do a me.refresh and have tried me.repaint and even a DoCmd repaintobject (I think that is it).

    None of this works - the repaintobject cannot find the second form although it is specified and present in the db!

    Any help would be great.

    MG

  2. #2
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343

    Re: refresh a form from a different form

    If it is a matter of timing it may be Access's default caching.
    Search the forums (top) for 'caching jro refresh'

    It could be you need me.requery (try this first).

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

  3. #3
    Hyperactive Member nagasrikanth's Avatar
    Join Date
    Nov 2004
    Location
    India,Hyderabad.
    Posts
    420

    Lightbulb Re: refresh a form from a different form

    if the second form is a sub form then u can use
    VB Code:
    1. subform.requery
    option...

    I think this requery option will help for other forms also...please chk it..

    thanx & regards
    Anu..
    The Difference between a Successful person and others is not a Lack of Knowledge,
    But rather a Lack of WILL

  4. #4

    Thread Starter
    New Member
    Join Date
    Sep 2005
    Posts
    5

    Re: refresh a form from a different form

    many thanks

    I let you know how I get on...

    MG

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width