I have a report that, when the report is run from the form it's missing data, yet when I run the report from the IDE the report works fine and the data is present. I'm thinking it might be a timing issue, that is to say, if I step through the code, where the database is updated and the report is run the missing data, which is from the same form that calls the report is on the report. On the other hand if I just run the form and the report runs the data is missing. Is this a bug or is there some why know if the database has been updated so I know the data will be there? Here's the code, which is straight forward, just two database updates and run the report.
UpdateValues
UpdateExpenses
DoCmd.OpenReport "rptCourtForm", acViewPreview
Thanks,
Tom
UpdateValues
UpdateExpenses
DoCmd.OpenReport "rptCourtForm", acViewPreview
Thanks,
Tom