Lock Form Focus

Posted on 2004-09-29
Last Modified: 2006-11-17

The database we've created uses pop-up forms for some of its functions. Unfortunately some parts of the database will not work correctly if a user was to click on a form below the form that was just popped up. Is there anyway to lock the focus of the database on a current form?


Question by:jamoparisi
  • 2
LVL 15

Accepted Solution

Colosseo earned 100 total points
ID: 12180748
Hi James

When you open the pop-up form you can set the window mode to acDialog to lock the focus on it.

for example DoCmd.OpenForm "frm_Popup", , , , , acDialog

will open the form frm_Popup and lock the focus on it until it is closed


LVL 65

Expert Comment

by:Jim Horn
ID: 12180828
Colollseo is right.  Also, from within a form you can set the .Modal = True property for the same effect.

Author Comment

ID: 12181282
LVL 15

Expert Comment

ID: 12181296
Glad it worked



Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Form button in access 2 37
Keeping a combo box up to date for other users 5 23
data analyst 3 49
VBA pass value between two fields different tables 10 37
This article is a continuation or rather an extension from Cascading Combos ( and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
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…

911 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

21 Experts available now in Live!

Get 1:1 Help Now