Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 23rd, 2005, 05:03 AM
Friend of Wrox
 
Join Date: Jun 2005
Posts: 181
Thanks: 0
Thanked 0 Times in 0 Posts
Default Delay Form loading by timer

Hi Guys
I am using the following code to load two forms at a specific time during the day.Is there any way I can delay the loading of the second form Frmdaysopen for 10 min after the first form Frmnoassign loads.

Private Sub Form_Timer()
On Error GoTo ErrorHandler
    Dim dtrunreport As Date
    Dim dtCurTime As Date


    dtrunreport = Format(#10:54:00 AM#, "hh:mm")
    dtCurTime = Format(Time(), "hh:mm")

    If dtCurTime = dtrunreport Then
DoCmd.OpenForm "Frmnoassign"
DoCmd.OpenForm "Frmdaysopen"




   End If

__________________
Brendan Bartley
 
Old June 23rd, 2005, 10:25 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 155
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to leehambly
Default

why not trigger the second form's timer from the first form's load event?





Similar Threads
Thread Thread Starter Forum Replies Last Post
loading form angelboy C# 2005 2 May 11th, 2007 03:11 PM
Slow-loading form(s) dhl84 Access VBA 1 January 11th, 2007 01:16 PM
Delay form unload coolcatjk Pro VB.NET 2002/2003 1 December 15th, 2005 09:58 AM
Dynamically Class Loading form jar saiyedriyaz J2EE 1 February 28th, 2005 05:41 AM
Windows Form Loading bmains VB.NET 1 February 5th, 2005 04:39 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.