Can anyone explain why this happens? 
Author Message
 Can anyone explain why this happens?

I have a app written in VB6, using CR that comes with Visual Studio 6 (CR ver is 4.6)

One of the reports I have is based on a table (and only one table) in an access database. In fact, the table only has one data column. There are no calculations, sorting or complex functions at all. The report just prints the contents of the table.

When the user clicks the 'Print' button, I remove all records in the table and re-populate it, based on options selected by the user. Then I activate the report. The report runs fine the first time. However, if the user then changes one of the options and re-runs the report, only the header and footer information is displayed. No data from the table. Even though there is data in the table.

At first I thought it could be that the disk hadn't written the data from cache/memory yet. But if this was the case it should have printed the data from the previous print. Just to be sure I put a 'For...Next' loop in, up to 5000, with just a 'DoEvents' statement in it. This didn't fix the problem.

Can anyone explain why this is happening please?

Thanks for any ideas.
Brent.



Mon, 14 Jul 2003 10:27:56 GMT  
 Can anyone explain why this happens?
Have you checked to be sure you do not have the report option 'Save data
with report' checked?

Digger



Tue, 15 Jul 2003 00:54:40 GMT  
 Can anyone explain why this happens?
Yeah, sorry. I should have said. That option is NOT turned on.


Quote:
> Have you checked to be sure you do not have the report option 'Save data
> with report' checked?

> Digger



Tue, 15 Jul 2003 05:01:33 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Help: Can someone Please Explain why the following happens

2. Anyone happen to know why?

3. Anyone happen to know why?

4. Anyone happen to know why?

5. Random Selection - Can anyone explain this code?

6. Toolbar - Can Anyone explain this behaviour

7. Can anyone explain ...

8. Can anyone explain ...

9. can anyone explain synchorous and asynchorous socket?

10. Can anyone explain what Data Mining is?

11. Can anyone explain these property inaccuracy errors?

12. Development Environment Versus EXE: can anyone explain it?

 

 
Powered by phpBB® Forum Software