Chat with a LIVE Microsoft Access Expert!
 
       
 

         

   

Go Back   Access World Forums > Microsoft Access Discussion > Forms

 
 
Chat with a LIVE Microsoft Access Expert!
Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-24-2005, 11:45 AM
aikiai aikiai is offline
Registered User
 
Join Date: Jan 2005
Posts: 17
aikiai is on a distinguished road
Update / Refresh a Form Upon Entering Data in a Popup Box / Form

I apologize if this has probably been asked countless times; however, in my search of this forum I could not find something that seemed to work for something so simple.

**************************************************
Scenerio:

I have 2 forms. The first form is my main form and the second form is my "popup" form. Both of these forms access the same table. In my main form I have it so people can not enter in a ID so it reduces accidental data entry. Therefore, I created a "popup" box that allows ID entry.

Everything works great except when I close out of the popup form, the newly entered data is not available unless I close the main form and reopen.

Million Dollar Question:

How do I refresh or requery (dunno the correct term usage here) the main form to reflect the addition I made in my popup form. I would like the refresh event to happen when I click the close button on my popup form.

**************************************************

Again, I know this is probably simple, but I cannot find it anywhere or most likely I am blind

Thank You
Reply With Quote
Sponsored Links
  #2  
Old 05-24-2005, 12:31 PM
boblarson's Avatar
boblarson boblarson is online now
Super Moderator
 
Join Date: Jan 2001
Posts: 22,003
boblarson is a name known to allboblarson is a name known to allboblarson is a name known to allboblarson is a name known to allboblarson is a name known to allboblarson is a name known to all
In the Close event of the popup form, put in

Code:
Forms!YourFormNameHere.Requery
Remember to change "YourFormNameHere" to the actual name of the main form.
__________________
Thanks,

Bob Larson

Free samples, tools and tutorials (including Auto Frontend Update Enabling Tool)

"Have you tried turning it off and on again?"
Reply With Quote
Sponsored Links
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I issue items from a multi-level inventory? ltl Forms 5 01-27-2004 11:32 AM
Update form based on combo box entry blakekj Forms 2 07-01-2003 02:20 AM
Data from Table to Text Box in Form Linkning?! 2000TransAm Forms 1 06-24-2002 01:46 PM
Problem closing a form with a combo box linked to a list box. Essendon Forms 1 04-10-2002 02:37 AM
HOW TO REFRESH THE FORM WITHOUT EXITING THE FORM rajput Forms 1 02-09-2001 12:00 PM


All times are GMT -8. The time now is 09:52 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
(c) copyright 2009 Access World