A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Updating Form==Query==Report



 
 
Thread Tools Display Modes
  #1  
Old May 23rd, 2010, 03:41 AM posted to microsoft.public.access.reports
dan
external usenet poster
 
Posts: 1,408
Default Updating Form==Query==Report

I have a date form. It has 2 text boxes that pass starting and ending dates
to a query to pull appts from that time period. If the report is left open
and the dates change in the date from, I have to manually refresh the report.
Is there a way that when I click off of the 2nd text box (ending date on
date form) that the data updates when I click back on the open report that it
all updates (Rpt.GetFocus = event) perhaps? The reason I ask is that the
reports are pulled up evey hour and the operators would like the already open
report to update once the form gets focus. This is probably not the right
method, so i am asking for any offered solutions. Thanks for all help!

Dan
  #2  
Old May 23rd, 2010, 06:57 AM posted to microsoft.public.access.reports
Andre[_5_]
external usenet poster
 
Posts: 6
Default Updating Form==Query==Report

I don’t think you can refresh a report that is already open (I might be
wrong, but have never thought of a report as a live object)

With a form you just use the requery command, but an open report is a
snapshot of the data at the time the report was run.

You may want to attempt Reports![MyReportName].requery




"Dan" wrote in message
...
I have a date form. It has 2 text boxes that pass starting and ending
dates
to a query to pull appts from that time period. If the report is left
open
and the dates change in the date from, I have to manually refresh the
report.
Is there a way that when I click off of the 2nd text box (ending date on
date form) that the data updates when I click back on the open report that
it
all updates (Rpt.GetFocus = event) perhaps? The reason I ask is that the
reports are pulled up evey hour and the operators would like the already
open
report to update once the form gets focus. This is probably not the right
method, so i am asking for any offered solutions. Thanks for all help!

Dan


  #3  
Old May 23rd, 2010, 11:08 PM posted to microsoft.public.access.reports
Marshall Barton
external usenet poster
 
Posts: 5,361
Default Updating Form==Query==Report

Andre wrote:
I don’t think you can refresh a report that is already open (I might be
wrong, but have never thought of a report as a live object)

With a form you just use the requery command, but an open report is a
snapshot of the data at the time the report was run.

You may want to attempt Reports![MyReportName].requery



FYI, I haven't tried Requery, but I have a few reports that
I "refresh" or whatever on the fly by changing either the
report's Filter or OrderBy property. Either of those
appears to cause the report to start over with its Open
event where you can use code to change all kinds of things
(e.g. the report's RecordSource, controls' properties
including ControlSource, Sorting and Grouping entries, etc.

--
Marsh
MVP [MS Access]
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:11 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.