Solved

Disabling ms access form

Posted on 2006-07-13
3
159 Views
Last Modified: 2010-04-30
Hi,

I have two forms. The second one is called by the button that is on the first one. I wanna disable first form when second one is open. Me.Enabled = False isn't working :(
0
Comment
Question by:RealSnaD
  • 2
3 Comments
 
LVL 65

Expert Comment

by:Jim Horn
ID: 17101860
Why not just close it?  In Access VBA...

DoCmd.OpenForm "Your Second Form Name"
DoCmd.Close acForm, Me.Name
0
 
LVL 65

Accepted Solution

by:
Jim Horn earned 125 total points
ID: 17101875
Another option would be to open the second form with Modal=True, which would mean the user couldn't set the focus off of that second form until they close it.

docmd.OpenForm "Your Second Form Name",acNormal,,,,acDialog
0
 
LVL 7

Author Comment

by:RealSnaD
ID: 17102041
Exactly what I need :) Thank you.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

685 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