Solved

Lock Form Focus

Posted on 2004-09-29
4
270 Views
Last Modified: 2006-11-17
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
Comment
Question by:jamoparisi
  • 2
4 Comments
 
LVL 15

Accepted Solution

by:
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

HTH

Scott
0
 
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.
0
 

Author Comment

by:jamoparisi
ID: 12181282
Perfect!
0
 
LVL 15

Expert Comment

by:Colosseo
ID: 12181296
Glad it worked

Cheers

Scott
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

757 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

16 Experts available now in Live!

Get 1:1 Help Now