A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Refesh Form



 
 
Thread Tools Display Modes
  #1  
Old June 3rd, 2004, 03:43 PM
Anonymous
external usenet poster
 
Posts: n/a
Default Refesh Form

Greetings!

I have built an "options" as a central point in a database
where other forms and objects can be opened for data
entry.

However, when a separate form is opened for data entry and
a new record is added, the options form stays open in the
background. When the data-entry form is closed, the new
record's data does not show in the the appropriate drop-
down. If I open and close the options form, then it shows
up.

I would like the options form to reflect the data as soon
as it's entered.

I can't seem to get the lost focus/on focus update query
macro to work.

How can I get this to happen, on what event, etc? Is
there some VBA code I can use, and where would I put it?

Thank you.


  #2  
Old June 3rd, 2004, 05:01 PM
Wayne Morgan
external usenet poster
 
Posts: n/a
Default Refesh Form

Are you using the NotInList event of the combobox to open the popup form? If
so, use the acDialog window mode argument when you open the popup. This will
pause the code in the NotInList event until you close the popup. Next, use
Response=acDataErrAdded to tell Access that there is new data for the
combobox to display. It will refresh the listbox automatically.

--
Wayne Morgan
Microsoft Access MVP


"Anonymous" wrote in message
...
Greetings!

I have built an "options" as a central point in a database
where other forms and objects can be opened for data
entry.

However, when a separate form is opened for data entry and
a new record is added, the options form stays open in the
background. When the data-entry form is closed, the new
record's data does not show in the the appropriate drop-
down. If I open and close the options form, then it shows
up.

I would like the options form to reflect the data as soon
as it's entered.

I can't seem to get the lost focus/on focus update query
macro to work.

How can I get this to happen, on what event, etc? Is
there some VBA code I can use, and where would I put it?

Thank you.




 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:54 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.