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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

opening reports 1

Status
Not open for further replies.

villsthearcher

Technical User
Oct 20, 2005
27
US
Hello,

I am able to open a Form, enter a parameter and then Run the Report.

But if I again enter a new parameter value, when the Report for the previous parameter value is OPEN, it doenot show a Report for the new value.

But when I CLOSE the report for the previous parameter value, and run again, it opens a report for the new parameter value .

Can anyone tell me, how do I refresh the value in the text box I use to enter the parameter value, instead of closing the report and then running it again?



Thanks,
villsthearcher
 
I think I'd tell the users to close the report first;-)

You could of course do something like this, in the "refresh/open" button thingie

[tt]if currentproject.allreports("NameOfYourReport").isloaded then
docmd.close acreport, "NameOfYourReport"
end if
docmd.openreport "NameOfYourReport", acviewpreview,,<your criterion>,...[/tt]

which I think might work

Roy-Vidar
 
olaaaaaaaaaah!!!!!

works like magic, Roy.

You are a life saver [bigsmile]

Thanks,
villsthearcher
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top