|
-
Jul 25th, 2005, 11:21 AM
#1
Thread Starter
Frenzied Member
ACCESS: How To: Install Short Delay in Module Code [RESOLVED]
Esteemed Forum Participants and Lurkers:
===============================
Access 2000 (XP) & '97
How do I insert a short in-line delay into my Module Code? I need about 250 milliseconds delay ... execute1, delay, execute2, delay, execute3
Thank you for any and all comments, suggestions, and assistance.
Last edited by Webtest; Jul 25th, 2005 at 01:45 PM.
Reason: [RESOLVED]
Blessings in abundance,
All the Best,
& ENJOY!
Art . . . . Carlisle, PA . . USA
-
Jul 25th, 2005, 11:22 AM
#2
Re: ACCESS: How To: Install Short Delay in Module Code ???
You can use the Sleep API. 
VB Code:
Private Declare Sub Sleep Lib "kernel32.dll" (ByVal dwMilliseconds As Long)
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jul 25th, 2005, 01:39 PM
#3
Thread Starter
Frenzied Member
Re: ACCESS: How To: Install Short Delay in Module Code ???
Many Thanks RobDog ...
For clarification unto future generations ...
Insert this into the declaration area at the very top of your module:
Code:
Private Declare Sub Sleep Lib "kernel32.dll" (ByVal dwMilliseconds As Long)
Here is the inline code:
Code:
DoCmd.Beep 'or whatever
Sleep(400)
DoCmd.Beep 'or whatever
Sleep(400)
DoCmd.Beep 'or whatever
Blessings in abundance,
All the Best,
& ENJOY!
Art . . . . Carlisle, PA . . USA
-
Jul 25th, 2005, 01:44 PM
#4
Re: ACCESS: How To: Install Short Delay in Module Code ???
Hmm, lets see. 3 Beeps means no video or memory error? 
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jul 25th, 2005, 01:47 PM
#5
Thread Starter
Frenzied Member
Re: ACCESS: How To: Install Short Delay in Module Code [RESOLVED]
No ... it means "If you forgot to wake up on the 1st beep, here are 2 more!"
Blessings in abundance,
All the Best,
& ENJOY!
Art . . . . Carlisle, PA . . USA
-
Jul 25th, 2005, 01:50 PM
#6
Re: ACCESS: How To: Install Short Delay in Module Code [RESOLVED]
Sounds similar to one of my first programs I wrote. An alarm clock that called me on the phone because my regular alarm clock
wasnt loud enough
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|