TimSzrejter
Programmer
I have a report that is running very erratic. Sometimes it will populate and sometimes it will come up #Error in all the fields.
The front end database contains the report and all the code. When the report opens a sub procedure is run which populates a worktable in the front end app. The front end has a few tables that are linked to a backend db on our server, which is where it pulls the data that is put into the worktable. Sometimes I can run this report and everything works ok. Other times the report comes up in preview mode with #Error in all the fields. When I go to the worktable, however, all the records are filled in like they should be. Another thing that I have noticed is that if I step through the code then the report will always run correctly. I was thinking there may be a timing issue. I've tried DoEvents in various stages of my code. Does anyone have any suggestions?
Thanks,
Tim Szrejter
The front end database contains the report and all the code. When the report opens a sub procedure is run which populates a worktable in the front end app. The front end has a few tables that are linked to a backend db on our server, which is where it pulls the data that is put into the worktable. Sometimes I can run this report and everything works ok. Other times the report comes up in preview mode with #Error in all the fields. When I go to the worktable, however, all the records are filled in like they should be. Another thing that I have noticed is that if I step through the code then the report will always run correctly. I was thinking there may be a timing issue. I've tried DoEvents in various stages of my code. Does anyone have any suggestions?
Thanks,
Tim Szrejter