Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 282
  • Last Modified:

Lock Form Focus

Hi,

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?

Thanks,

James
0
jamoparisi
Asked:
jamoparisi
  • 2
1 Solution
 
ColosseoCommented:
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

HTH

Scott
0
 
Jim HornMicrosoft SQL Server Developer, Architect, and AuthorCommented:
Colollseo is right.  Also, from within a form you can set the .Modal = True property for the same effect.
0
 
jamoparisiAuthor Commented:
Perfect!
0
 
ColosseoCommented:
Glad it worked

Cheers

Scott
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now