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
>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