W H Y T H I S ?

  • Thread starter Thread starter giannis
  • Start date Start date
G

giannis

Why when run this code :

DoCmd.OpenForm "form2"
t = Timer
Do While Timer - t < 5
Loop

i see only the title bar and the border
of the form for 5 seconds ?!!!
Why the form dont opened normal
for these 5 seconds ?!!!
After 5 seconds the form displayed
normal.....
 
Because you have Access tied up in a tight loop. Stick a
Forms!Form2.Setfocus after the OpenForm and include a DoEvents within the
loop.

--
John Viescas, author
"Microsoft Office Access 2003 Inside Out" (coming soon)
"Running Microsoft Access 2000"
"SQL Queries for Mere Mortals"
http://www.viescas.com/
(Microsoft Access MVP since 1993)
 
Back
Top