Solved

Not close but not visible

Posted on 2006-11-16
2
135 Views
Last Modified: 2010-04-30
Hi guys,

is there a way to make the form invisible when the user presses the close button or Alt + F4 instead of closing it?

Thanks in advance.
0
Comment
Question by:RealSnaD
  • 2
2 Comments
 
LVL 67

Expert Comment

by:sirbounty
ID: 17960972
me.Hide
0
 
LVL 67

Accepted Solution

by:
sirbounty earned 500 total points
ID: 17960981
Sorry, you'll need to place that in your Query_Unload:

Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
me.Hide
Cancel=True
End Sub
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now