Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8648581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T13:20:47+00:00 2026-06-12T13:20:47+00:00

I am looking forward to hide the Access background of my project when it’s

  • 0

I am looking forward to hide the Access background of my project when it’s running to give it a more professional look and make it running like a standalone application. I am using Access 2003 and a form is already opening when the project is loaded. I would like to add some code in the Private Sub Form_Open(Cancel As Integer) of that form to hide the Access background.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T13:20:48+00:00Added an answer on June 12, 2026 at 1:20 pm

    The following will work on older versions of Access (tested on Access 2003):

    Option Compare Database 
    Option Explicit 
    
    Global Const SW_HIDE = 0 
    Global Const SW_SHOWNORMAL = 1 
    Global Const SW_SHOWMINIMIZED = 2 
    Global Const SW_SHOWMAXIMIZED = 3 
    
    Private Declare Function apiShowWindow Lib "user32" _ 
    Alias "ShowWindow" (ByVal hWnd As Long, _ 
    ByVal nCmdShow As Long) As Long 
    
    Function fSetAccessWindow(nCmdShow As Long) 
    
        Dim loX As Long 
        Dim loForm As Form 
        On Error Resume Next 
        Set loForm = Screen.ActiveForm 
    
        If Err <> 0 Then 
            loX = apiShowWindow(hWndAccessApp, nCmdShow) 
            Err.Clear 
        End If 
    
        If nCmdShow = SW_SHOWMINIMIZED And loForm.Modal = True Then 
            MsgBox "Cannot minimize Access with " _ 
            & (loForm.Caption + " ") _ 
            & "form on screen" 
        ElseIf nCmdShow = SW_HIDE And loForm.PopUp <> True Then 
            MsgBox "Cannot hide Access with " _ 
            & (loForm.Caption + " ") _ 
            & "form on screen" 
        Else 
            loX = apiShowWindow(hWndAccessApp, nCmdShow) 
        End If 
        fSetAccessWindow = (loX <> 0) 
    End Function 
    

    Just call fSetAccessWindow(0) to hide and fSetAccessWindow(1) to show. Alternatively, use fSetAccessWindow(2) and fSetAccessWindow(3) to show minimized/maximized. You can use the Global Const too. Be careful: Access will be hidden from the taskbar.

    If it doesn’t work with Access 2010, here is another code that could work: http://www.tek-tips.com/faqs.cfm?fid=2562

    The forms must be modal or it won’t work. If for some reason you messed up and Access is still running in background but not showing in the taskbar or the task-manager, double click on any Access project again (nothing will happen because Access is still running) and then press ALT+TAB to reach the Access icon (it should magically show up). Nothing happens again because it’s hidden, but it’s now possible to close it with ALT+F4 if it still has the focus, thus preventing you from rebooting your computer…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey everyone, I'm back and looking forward to more of your brilliance. I have
Looking forward to create an application with SkypeKit. Can we make a call to
I am looking forward to implementing a daily build for an upcoming project. But
I'm looking forward to make my data usable during every restart of my program.
I'm looking forward to allowing my users configure their email notifications frequency. I'd like
Im looking forward to writing a combobox with history. Much like address bar, only
I am looking for a new project of my own: I would like to
I am looking forward to start a project that will use OCR , Object
I'm looking forward to create some customs controls like AutoCompletes, TagClouds and others. To
I am looking forward to build a prototype, which should be running completely headless

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.