Solved

ME.REFRESH

Posted on 2000-03-14
5
806 Views
Last Modified: 2008-02-01
Could somebody give me advise on the following code usage...

me.refresh

Many Thanks

Felicia
0
Comment
Question by:felicia
  • 2
  • 2
5 Comments
 
LVL 32

Accepted Solution

by:
Erick37 earned 0 total points
ID: 2618405
Use the Refresh method when you want to:

·Completely display one form while another form loads.
·Update the contents of a file-system list box, such as a FileListBox control.
·Update the data structures of a Data control.

Refresh can't be used on MDI forms, but can be used on MDI child forms. You can't use Refresh on Menu or Timer controls.

Generally, painting a form or control is handled automatically while no events are occurring. However, there may be situations where you want the form or control updated immediately. For example, if you use a file list box, a directory list box, or a drive list box to show the current status of the directory structure, you can use Refresh to update the list whenever a change is made to the directory structure.

You can use the Refresh method on a Data control to open or reopen the database (if the DatabaseName, ReadOnly, Exclusive, or Connect property settings have changed) and rebuild the dynaset in the control's Recordset property.
0
 
LVL 32

Expert Comment

by:Erick37
ID: 2618409
That's from VB Help, by the way.

Example:

Private Sub Form_Load()
    Me.Show
    Me.Refresh
    Form2.Show
End Sub
0
 

Author Comment

by:felicia
ID: 2618439
Thanks.

Have a good day!!!

0
 

Expert Comment

by:FONATURE
ID: 2618693
I use refresh.me instead of cls.me some times both clears the form or object for updateing.I use it in Animation
0
 

Expert Comment

by:FONATURE
ID: 2618701
Im sorry i use Form1.cls instead of refresh.me or picture1.cls thats works for me :0)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now