Results 1 to 6 of 6
  1. #1
    John Southern is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    31

    How can I program an "activity indicator"

    The VBA program i am working on has a lot of activity such as a series of queries and then subsequent manipulation of the data. When this is all happening the screen is essentialy blank. I would like to produce something that would reassure the user that he hasn't been forgotten. I am thinking of something like the revolving cursor or the horizontal "thermometers" often seen in windows programs.
    All my efforts have foundered on the realisation that I am asking the computer to do two things at once, ie run the vba code and the indicator.
    So a message box is no good, it has to be dismissed before the program can continue.
    I have searched for code fragments, but with no luck so far. Can any one help please.


    John

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You can put up your own "Please Wait" form and dismiss it when you are done. You can update a thermometer only between queries.

  3. #3
    John Southern is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    31
    RuralGuy
    I have tried that as follows

    Code:
     
    Private Sub Command21_Click()
    DoCmd.OpenForm "FrmWait"
    flag = "Hist"
    Text27.Value = flag
    GetHistData (flag)
    DoCmd.CloseForm "FrmWait"
    End Sub
    I just get a runtime error "Compile error Method or Data member not found"
    And of course when I checked, DoCmd.CloseForm does not exist.
    Thanks for your interest
    John

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Try:
    DoCmd.Close acForm, "FrmWait", acSaveNo

  5. #5
    John Southern is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Mar 2010
    Posts
    31
    Thank you for your help. That works fine.
    Thread marked as solved
    John

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Great! Glad we could help.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Need to update an ancient Access97 "program".
    By Hilton in forum Programming
    Replies: 1
    Last Post: 05-26-2010, 04:47 AM
  2. Replies: 3
    Last Post: 04-10-2010, 10:22 AM
  3. HyperLink error "No Program registered ..."
    By RycherX in forum Access
    Replies: 1
    Last Post: 02-09-2010, 03:36 PM
  4. aSTR = Dir("C:\*.*") >> "Type Mismatch"
    By JGrant in forum Programming
    Replies: 1
    Last Post: 03-28-2009, 05:17 AM
  5. "Count" and "Countif" in Reports
    By JMantei in forum Reports
    Replies: 1
    Last Post: 06-20-2006, 02:20 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums