igendreau
05-05-2010, 11:59 AM
I have a form that lists Orders (frmOrders). I have a button in the detail section that allows the user to open another form with some additional order details (frmOrderDetails), and they can also edit fields in that screen. When they my Exit button on frmOrderDetails, it closes that form, and leaves you looking once again at frmOrders.
Here is my problem. A few fields appear on both forms. For instance, DeliveryDate. If someone goes into frmOrderDetails and updates the DeliveryDate field, when they click exit, I want that new DeliveryDate to be appearing on my frmOrders screen. I thought it'd be as simple as attaching the following to my Exit button:
Forms!frmOrders.Refresh
It seems to work fine for me, but I have complaints from users who say that they still don't get a refreshed screen until they exit out and open frmOrders again. Doing a .Requery definitely works, but it also undoes any sorting or filtering the user has already done, so I'd like to skip that.
If someone can tell me how to make certain that the frmOrders form is correctly being refreshed, I'd greatly appreciate it. Thanks!
Here is my problem. A few fields appear on both forms. For instance, DeliveryDate. If someone goes into frmOrderDetails and updates the DeliveryDate field, when they click exit, I want that new DeliveryDate to be appearing on my frmOrders screen. I thought it'd be as simple as attaching the following to my Exit button:
Forms!frmOrders.Refresh
It seems to work fine for me, but I have complaints from users who say that they still don't get a refreshed screen until they exit out and open frmOrders again. Doing a .Requery definitely works, but it also undoes any sorting or filtering the user has already done, so I'd like to skip that.
If someone can tell me how to make certain that the frmOrders form is correctly being refreshed, I'd greatly appreciate it. Thanks!