Solved

Disabling ms access form

Posted on 2006-07-13
3
160 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…
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…

739 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