I am Using datareport When i was add the data and print to ok the output of report has Previous datas all are showing? so how can i get current data alone?

Recommended Answers

All 8 Replies

use .update and .refresh method in add form

you need to refresh the report once before printing.

Pls send code for example like how it is?

What is the code that you are working on ?

VB6 Back end Ms Access

I had asked for the code that you are working on.

The following is my code but not refreshing,it showing all data from starting.

DataReport1.Show
DataReport1.Refresh

If your are using dataenvironment, you can re-open the source recordset with the new sql query.
Note: close the recordset after the datareport.show command.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.