[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 415
  • Last Modified:

saving current form, refreshing and staying on the record you are viewing on the different forms?

When my users work, they have multiple forms opened.

I asked them to hit the refresh all to save the current working record.
So this data can be propagated to other forms' lookup controls like combo box.

When they hit the refresh all, the current record from whatever opened forms got sorted and lost.

1) How can I save the current record on the working form without losing the location of the whatever forms they have opened?

2) When I add/edit on one form, I want that to propagated to other currently opened forms without losing their current location?
0
dkim18
Asked:
dkim18
  • 4
  • 2
2 Solutions
 
peter57rCommented:
I don't think there's much you can do if you continue to use the Refresh button on the ribbon.  You have no means of getting inside that process.
(The problem is due to the fact that Refresh is not really refresh - it performs a Requery, not a Refresh.).

To get control over the situation you have to build your own Refresh procedure and if you want it to be always available then you will have to build your own custom ribbon to trigger it as well - unless you have a form that is always open and where you could place a Refresh All button.
0
 
dkim18Author Commented:
I think this only happens when you are creating a new record.

To propagate the data you just created from one form to other forms, I use the refresh all, is that right?
0
 
Jeffrey CoachmanCommented:
<I use the refresh all, is that right?>
Well, if you tried it, did it work?

<the current record from whatever opened forms got sorted and lost.>
I have never "Lost" data by hitting the refresh all button.

As Pete states, this does a requery (that will bring you back to the first record typically), thus you will not be on the current record anymore.
But the record is not "Lost"

This is the reason most Access devs try to keep the number of open forms to a minimum.

Try to use Main/subforms instaed of standalone forms, where managing these things is easier
.
0
Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

 
dkim18Author Commented:
Yes, the refresh all works.
I meant "Lost" as the newly created record got sorted and it is not the current working record.

I am already using the main/subform.


So what do you guys suggest for staying at the newly added record after the creating new record?
0
 
Jeffrey CoachmanCommented:
Something like this:
Database93.mdb
0
 
Jeffrey CoachmanCommented:
And keep the "Multiple forms open at a the same time" stuff down to a *minimum* and simply avoid these issues altogether...
0
 
Jeffrey CoachmanCommented:
My pointy here is that if you used a Main subform this would not be an issue...
(simply enter the child data into the subform)

As soon as you want to allow: "Multiple forms open at a the same time"

Then managing this can get complex and messy relatively quickly...

JeffCoachman
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now