• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 281
  • 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

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

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