Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $98

How to update without closing form

Discussion in 'Information Technology' started by Ross, Nov 14, 2005.

  1. Ross

    Expand Collapse

    Hi there
    I have a form relating to a table "vehicledetails" with a page displaying a
    list "availablevehicles" and another page showing a subform relating to
    another table "vehiclebookings" and displaying a list "currentbookings".
    When I perform an action to place a booking, the "availablevehicle" list
    updates immediately, however the "vehiclebookings" list dosent update unless
    I close and reopen the Form.
    Have tried refresh and requery, to no avail. any ideas
    Cheers Ross
  2. Loading...

    Similar Threads Forum Date
    Self Update On The Gurdwara Blogs Apr 3, 2017
    Sikh News BREAKING: Young Sikh Shot Dead In Jalalabad, Afghanistan . - Sikh24 News & Updates Breaking News Oct 2, 2016
    update Blogs Oct 16, 2015
    Update Wikipedia enteries on Sikh Socio-Political Topics Breaking News Jul 19, 2015
    Pacific Oil slicks spotted in search for missing Malaysia Airlines plane (Live updates) Breaking News Mar 8, 2014

  3. Albert D.Kallal

    Albert D.Kallal
    Expand Collapse

    Are you sure you are doing a Requery on that sub form?

    You can usually do a requery like


    The above usually will do the trick. You could I suppose FORCE a requery on
    the actual sub-from also. If the above don't work, then try the actual form
    object, like:


    Note how we distinguish between the sub-form control, which is just a
    control like any other on your form. (this means you can even set what
    "form" the sub-form control displays at run time. So, don't confusing the
    concept of sub-form being something other then a standard control on your

    Anyway, if the neither of the above works, then something else is going on.

    I would perhaps force a update of the "main" forms record BEFORE I run any
    processing code, and THEN do a requery on the sub-form as above.


    me.Refresh - force a disk write of the main form
    - this assume your code is running
    - in the main form
    --- now call your update stuff......

    The above should work. As mentioned, you might change the above to


    Albert D. Kallal (Access MVP)
    Edmonton, Alberta Canada
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     

Share This Page