add new record - preview report -new data doesn't show

G

Guest

When I add a new record on a form and press the command button to display the
report. The new data added(bill rate-calc. value) does not display. Have to
exit report - go to form navigate back or up one record than show report and
the new record is visible. Do I add refresh - somewhere to the preview of
report code of the onclick event of the command button?????
Thanks,
Barb
 
R

Rick Brandt

babs said:
When I add a new record on a form and press the command button to
display the report. The new data added(bill rate-calc. value) does
not display. Have to exit report - go to form navigate back or up
one record than show report and the new record is visible. Do I add
refresh - somewhere to the preview of report code of the onclick
event of the command button?????
Thanks,
Barb

Your new record is not yet saved and thus does not exist in the table(s)
that the report is looking at. Just issue a save before opening the report.

Me.Dirty = False
DoCmd.OpenReport...
 

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