Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / April 2008

Tip: Looking for answers? Try searching our database.

Refresh after New Record Added

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
aMack - 18 Mar 2008 21:48 GMT
I have created an input form for new records from our main production form.

The main form does not refresh after the new record is added.

I have to exit and reopen to see the new record.

Where can I pout a Refresh command to show the new record immediately?

Thanks

Signature

A MACKENZIE, CMA, MBA

Brendan Reynolds - 19 Mar 2008 10:51 GMT
>I have created an input form for new records from our main production form.
>
[quoted text clipped - 5 lines]
>
> Thanks

I haven't tested this, but from memory I believe something like the
following should work, in the AfterUpdate event procedure of the input form
...

Forms("NameOfMainFormHere").Refresh

... or perhaps ...

Forms("NameOfMainFormHere").Requery

Signature

Brendan Reynolds

aMack - 19 Mar 2008 14:10 GMT
Refresh did not work

Requery did.

Thanks

Signature

A MACKENZIE, CMA, MBA

> >I have created an input form for new records from our main production form.
> >
[quoted text clipped - 15 lines]
>
> Forms("NameOfMainFormHere").Requery
aMack - 01 Apr 2008 21:22 GMT
Tiurns out that the "requery" command only works when the form is opened
directly from the Forms menu.

When initiated from our "Main Switchboard" it does not.

1) From Main Switchboard - Open Form "Intermodal Transload"
2) From form "Intermodal Transload" initaite macro "Add New Order" - This
adds a new REF# to the data table Intermodal Transload and opens a form "Add
New Order"
3) Close form "Add New Order" with "On Close" command:
Forms(Intermodal_Transload).Requery

What should I look for to troubleshoot this issue?

Thanks

Signature

A MACKENZIE, CMA, MBA

> Refresh did not work
>
[quoted text clipped - 21 lines]
> >
> > Forms("NameOfMainFormHere").Requery
Pete D. - 02 Apr 2008 00:24 GMT
Where did you put the requery in the form properties?
> Tiurns out that the "requery" command only works when the form is opened
> directly from the Forms menu.
[quoted text clipped - 41 lines]
>> >
>> > Forms("NameOfMainFormHere").Requery
aMack - 02 Apr 2008 14:31 GMT
The "Requery" command is "On Close" and reads:

Forms(Intermodal_Transload).Requery

It works when the form is opened from the Forms menu but not when opened
from the Main Switchboard.

Signature

A MACKENZIE, CMA, MBA

> Where did you put the requery in the form properties?
> > Tiurns out that the "requery" command only works when the form is opened
[quoted text clipped - 42 lines]
> >> >
> >> > Forms("NameOfMainFormHere").Requery
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.