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  

timer



 
 
Thread Tools Display Modes
  #1  
Old January 25th, 2007, 05:03 PM posted to microsoft.public.access.reports
85ascMcLaren
external usenet poster
 
Posts: 12
Default timer

I have a report that tries to read from a temp table that I create right
before I call the open report command. Problem is - the report generates a
2580 'record source not available' error because I believe that report is
trying to open too fast. The table probably is not built and closed before
the report is trying to open. I can prove this by waiting for a second once
I press the debug key, then pressing F8 or F5 for the program to continue.
Then the report comes up fine. How can I put a pause or timer for a couple
of seconds before I call the openreport command? I do not know how to use a
timer control in access visual basic or if one exists in Access 2003 vba....

Thanks,
Jason

  #2  
Old January 25th, 2007, 08:04 PM posted to microsoft.public.access.reports
Klatuu
external usenet poster
 
Posts: 7,074
Default timer

Rather than using the timer event, copy the code at this site and use it to
delay your code for a second or two:

http://www.mvps.org/access/api/api0021.htm
--
Dave Hargis, Microsoft Access MVP


"85ascMcLaren" wrote:

I have a report that tries to read from a temp table that I create right
before I call the open report command. Problem is - the report generates a
2580 'record source not available' error because I believe that report is
trying to open too fast. The table probably is not built and closed before
the report is trying to open. I can prove this by waiting for a second once
I press the debug key, then pressing F8 or F5 for the program to continue.
Then the report comes up fine. How can I put a pause or timer for a couple
of seconds before I call the openreport command? I do not know how to use a
timer control in access visual basic or if one exists in Access 2003 vba....

Thanks,
Jason

 




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 08:50 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.