Solved

Disabling ms access form

Posted on 2006-07-13
3
154 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
Comment Utility
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
Comment Utility
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
Comment Utility
Exactly what I need :) Thank you.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

762 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

12 Experts available now in Live!

Get 1:1 Help Now