Table refresh

A

Alan

Sorry,
I have a main form have text boxes showing the fields of a record, then
another button like 'Edit current record', it pops up a form and I do the
editing, close that form and return to main form.

I want the main form refreshes reflecting the new data.
 
J

John Vinson

Sorry,
I have a main form have text boxes showing the fields of a record, then
another button like 'Edit current record', it pops up a form and I do the
editing, close that form and return to main form.

I want the main form refreshes reflecting the new data.

Requery the main form in the Close event of the popup form:

Forms![mainformname].Requery

It will move the form back to the first record unless you store the
Primary Key of the record before you pop up the form, and find it
afterward.
 
A

Alan

I am using the table rather than query for the main form.
How do I refresh the table ?

John Vinson said:
Sorry,
I have a main form have text boxes showing the fields of a record, then
another button like 'Edit current record', it pops up a form and I do the
editing, close that form and return to main form.

I want the main form refreshes reflecting the new data.

Requery the main form in the Close event of the popup form:

Forms![mainformname].Requery

It will move the form back to the first record unless you store the
Primary Key of the record before you pop up the form, and find it
afterward.
 
J

John Vinson

I am using the table rather than query for the main form.

Even if the Form is based directly on a Table, you can Requery the
form; doing so will check for new information in the table and display
it. Access actually creates a hidden query for you as the recordsource
of the form, for that matter - all Forms are based on queries anyhow!
 
K

Kevin

How do I make a calculation on two form entries and have that calculation update to the main table

Expample: Sales Entry Cost Entry Gross Profit ( Sales - Cost

Thank You
 

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

Similar Threads


Top