Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you refresh a data report VB6?

Status
Not open for further replies.

yryan

Programmer
May 10, 2002
15
CA
I have a data report and I want to be able to keep the application open and still run reports for different people.

Currently I run the report, it brings in information from Access through data environment. My connections are not in code. There is a button that requests the user to enter two peices of information through input boxes. Then the application brings in the information to the report. When you click the button again, it will go through the morions and the correct information gets written to the database but when the report appears it is for the first person entered.

I need to be able to run the report for one person, print it and then run the report for the next person without having to exit the application in between.

Please help! Could you also tell me where the code would have to go in my report. For example, I have a main form and trhe data report. Does the code have to go under the data report or under the button that displays the report?

Thanks in advance for your help!
 
thanks for your help ... it works now!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top