Results 1 to 3 of 3

Thread: Setting focus

  1. #1

    Thread Starter
    Addicted Member icemanmt78's Avatar
    Join Date
    May 2000
    Posts
    142

    Unhappy

    I have a second form with a label stating that a database is updating. I want this form to appear when i am processing some data into a database.

    I am using the following code:

    If Pass = "woods" Then
    cmdDelete.Enabled = False
    cmdEnd.Enabled = False
    frmUpdate.Show
    frmUpdate.SetFocus
    DeleteTables
    cmdDelete.Enabled = True
    cmdStage1.Enabled = True
    cmdStage2.Enabled = False
    cmdEnd.Enabled = True
    Else

    My second form shows on the screen but it is transparant.
    I have tried to set focus on this form but to no avail.

    Any ideas of how to show the second form when the processes are working without becoming invisible?

  2. #2
    Junior Member
    Join Date
    Jun 2000
    Location
    Manchester, England
    Posts
    28
    A quick call to DoEvents should refresh the form for you, call it just once after the call to show the form.
    We watch in reverence as Narcissus is turned to a flower.

  3. #3
    Lively Member
    Join Date
    Jul 2000
    Posts
    82
    or you could try form2.refresh

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width