Refresh data displayed in subform

T

Tom McMillion

I created an "Order Entry" form with a subform on it
called "AllOrders subform" displayed in datasheet mode.
The purpose of the subform is to display all orders
including new orders added to the "Orders" table using
the "Order Entry" form.

I need a command button to refresh the subform to display
additional orders created on the main order entry form.
I figured out have to move the focus to a subform, but I
haven't figured out how to update the subform to display
additional records from the underlying "Orders" table
from which the subform was created.

Any advice or comments?
 
S

Shawn

-----Original Message-----
I created an "Order Entry" form with a subform on it
called "AllOrders subform" displayed in datasheet mode.
The purpose of the subform is to display all orders
including new orders added to the "Orders" table using
the "Order Entry" form.

I need a command button to refresh the subform to display
additional orders created on the main order entry form.
I figured out have to move the focus to a subform, but I
haven't figured out how to update the subform to display
additional records from the underlying "Orders" table
from which the subform was created.


You can create a macro associated to the button
that "requery" the subform when pressed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top