Results 1 to 4 of 4
  1. #1
    evander is offline Competent Performer
    Windows 7 Access 2003
    Join Date
    Apr 2010
    Location
    Philippines
    Posts
    206

    Pop-up form to stay on top of other forms while executing VBA code

    Hi guys!



    I'm back again. I wanna ask for some help.

    Question: How do I create a pop-up form that stays on top of other forms, or even on top of Microsoft Access (similar to a message box) so that Access freely executes some VBA code, and the user is prevented from accidentally halting its execution?

    For example:

    Code:
    Private Sub AppendDatatoTemporaryTable
       DoCmd.OpenQuery.... 'To clear temporary table of any existing rows of data
    
       DoCmd.OpenQuery.... 'To append sales data
       DoCmd.OpenQuery.... 'To append purchases data
       DoCmd.OpenQuery.... 'To append collection data
       DoCmd.OpenQuery.... 'To append disbursement data
    End Sub
    While the above code executes, I want a form to appear. What properties can I set to achieve this form behavior. I can't use a message box for this task because a message box pauses a code execution.

    Thanks guys! Glad I found this site months ago.

    JAN(JOE)

  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
    On the Other tab of the property sheet set PopUp *and* Modal to TRUE.

  3. #3
    evander is offline Competent Performer
    Windows 7 Access 2003
    Join Date
    Apr 2010
    Location
    Philippines
    Posts
    206
    RuralGuy, thanks a lot!

  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
    Any time. Glad we could help.

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

Similar Threads

  1. VBA code - questions table onto forms
    By Tman in forum Programming
    Replies: 3
    Last Post: 04-26-2010, 05:47 AM
  2. Executing Query to Excel?
    By objNoob in forum Programming
    Replies: 1
    Last Post: 03-17-2010, 04:59 PM
  3. Executing Access macro
    By Gnorro in forum Access
    Replies: 2
    Last Post: 09-21-2009, 08:32 AM
  4. Replies: 0
    Last Post: 09-11-2006, 07:11 AM
  5. How get path of executing database?
    By mscertified in forum Forms
    Replies: 3
    Last Post: 11-09-2005, 03:56 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