?
Solved

Reloading a Form from Another

Posted on 2003-02-21
2
Medium Priority
?
196 Views
Last Modified: 2010-04-07
I am trying to find out how to Reload another form from another.(e.g. Reload Form1 by pressing a button on Form2). I need this to update features on form1
0
Comment
Question by:iregan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 1

Accepted Solution

by:
jeffreyhamby earned 400 total points
ID: 7993969
I may not have enough information, but it sounds like you just need to do the following in the click event of the command button on form2

'whatever code you want to change form1 here
Form1.Refresh

All I did to test, though, was change the caption of a button on form1, and didn't actually need the refresh.  You can end if it you need with a Form1.SetFocus or use the SetActiveWindow API call.

If this isn't what you meant, maybe you could be a little more descriptive, and maybe show some sample code.

Jeff
0
 

Author Comment

by:iregan
ID: 8016377
Sorted and ill give u the points anyway
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month13 days, 20 hours left to enroll

800 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