dbTalk Databases Forums  

Hardcode a WAIT command using VB in Forms?

comp.database.ms-access comp.database.ms-access


Discuss Hardcode a WAIT command using VB in Forms? in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Stu
 
Posts: n/a

Default Hardcode a WAIT command using VB in Forms? - 07-02-2003 , 11:28 AM






Does anyone know how to code a WAIT command using VB in Forms?
For example, I want to move an object (e.g. a command button) using
the LEFT property 1/2 inch every second until it reaches an end point.
I've got a for..next loop built to accomplish this, but it needs to
have a pause or it reaches the destination point too quickly.
Here is my sample code:

Dim i As Integer
For i = 2000 To 10000 Step 1000
cmdMyButton.Left = i
'***NEED PAUSE COMMAND HERE****
Next i

Thanks!!!

Reply With Quote
Reply




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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.