requery

S

sandrao

Is there any way to requery information in a form without specifing every
field that new information was entered? I know that as soon as I go into a
new record the information will be updated and appear in the Report. Can you
get around having to move to a new record they back again to have the Report
desplay all the new information entered in the various fields?

sandrao
 
D

Douglas J. Steele

You first need to save the data, then requery the form:

Me.Dirty = False
Me.Requery
 
M

Marshall Barton

sandrao said:
Is there any way to requery information in a form without specifing every
field that new information was entered? I know that as soon as I go into a
new record the information will be updated and appear in the Report. Can you
get around having to move to a new record they back again to have the Report
desplay all the new information entered in the various fields?


In the form button's Click event, add a line of code to save
any changes right before the code that opens the report

If Me.Dirty THen Me.Dirty = False
 
S

sandrao

Thanks very much. both yours and the other method both work fine, I also
found another method that also works:


DoCmd.RunCommand acCmdRefreshPage
 

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