Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

refresh

ResolvedVersion 2007

Lucia has attended:
Access Intermediate course

Refresh

Hi!

Is there a way of creating a "Refresh All" button or command in a form, so that it will bring information just entered in another form to the current form I'm working on?

I created a "refresh" button using the button in the design tools but it didn't work. I tried changing the command to "RefreshData", RefreshPage" but nothing worked.. However, if I click Refresh All in the ribbon, it works! Any ideas of what the command should be or what can be going wrong?

Many thanks!

Lucia Possas

RE: Refresh

Hi Lucia, thanks for your query. You need to attach:

Me.Refresh

...to your refresh button to update the current form with information entered into another. Refresh All cycles through all open forms and controls and updates them and to do this in code you need to count the number of open objects, loop through them and refresh them one by one which might be overkill for what you're trying to achieve. Make sure the information entered into the previous form has been saved to the database before you refresh your new form.

Hope this helps,

Anthony

Access tip:

How To Display An '&' In A Label In A Form

To have your label display a sentence with an &(ampersand) in it, like Fox & Hound simply type it as:

Fox && Hound

View all Access hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.11 secs.