473,756 Members | 6,098 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Modal Form & Minimizing Access

Modal forms are great for locking the user out of non focused forms
allowing tight control over program flow, but they have one side
effect which user find very irritating i.e. Access cannot be
minimized.

Perhaps I should be satisfied with the routine I have written which
disables controls on a form before the popup form is opened but a
background form full of disabled controls can look damned ugly in
certain circumstances:-

Function EnableFrm (onoff As Boolean, frm as form)
Dim ctrl As Control
For Each ctrl In frm.Controls
On Error Resume Next
ctrl.Enabled = onoff
Next ctrl
End Function

Other than putting a desktop shortcut in the taskbar does anyone have
any alternative suggestions to this conundrum.

Many Thanks

Chris
Nov 13 '05 #1
3 4953
Chris, the behaviour you describe applies to forms that are both modal and
popup.

Would it be appropriate to use a form with Modal set to Yes, but Popup set
to No? This lets the user get to toolbars, minimize the Acess, etc, but not
switch to another form.

The next suggestion may not be appropriate for your situation, but I often
see developers trying to maintain tight control over program flow just
because they do not thing event-driven. It is possible to create an Access
application that allows the user to go almost anywhere, almost any time.
Yes, it does take some extra effort to achieve that, and particular to
handle the concurrency issues, but the result is a truly amazingly flexible
application.

This kind of design is inappropriate where the database user is typically a
novice who needs you to hold their hand and is lost without a wizard-like
interface to walk them through a set of procedures. However, if a client is
paying you to develop an application for them, they will be using it every
day, and the rigid, procedural interface soon becomes tiresome. My
experience is that the totally flexible, go-anywhere-anytime,
do-anything-in-any-order interface is much better, and is worth the effort
it takes to develop it.

So, what we do is to call a generic procedure in the AfterUpdate and
AfterDelConfirm events of all bound forms. During most of the development
cycle, this proc is just a stub. Once all forms and reports are in place,
this proc becomes a large Select Case structure that responds to each form's
updates, and handles the concurrency issues on each form that could be
affected if is is loaed (e.g. by requerying combos). Although this approach
breaks the general ideal of creating many small procedures instead of one
large one, it lets you develop the app piecemeal and sort out the
concurrencies once you have all the dependencies in place, and it
facilitates maintenance if other things are added later: there is only one
place to look to check for any new/affected interactions.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Chris" <ch**********@h otmail.com> wrote in message
news:f0******** *************** ***@posting.goo gle.com...
Modal forms are great for locking the user out of non focused forms
allowing tight control over program flow, but they have one side
effect which user find very irritating i.e. Access cannot be
minimized.

Perhaps I should be satisfied with the routine I have written which
disables controls on a form before the popup form is opened but a
background form full of disabled controls can look damned ugly in
certain circumstances:-

Function EnableFrm (onoff As Boolean, frm as form)
Dim ctrl As Control
For Each ctrl In frm.Controls
On Error Resume Next
ctrl.Enabled = onoff
Next ctrl
End Function

Other than putting a desktop shortcut in the taskbar does anyone have
any alternative suggestions to this conundrum.

Many Thanks

Chris

Nov 13 '05 #2
Allen,

Since the majority of our users are not technically minded a rigid
system has been decided on. Our existing system is an anywhere anytime
database and the implementation is rather confusing, although I must
say I do like Quickbooks way of doing things and if I were to follow
this path I would probably try to copy their model.

Modal forms follow maximized/restored state of the background form,
behavior I was trying to avoid. I guess if it comes to it I will just
have to knuckle down and redesign a whole lot of forms.

Thank you so much for your suggestions it has given me another angle
with which to view our front end design.
Nov 13 '05 #3
Allen
Since the majority of our users are not technically minded a rigid
system was decided on. Our existing system is an anywhere anytime
database and the implementation is rather confusing, although I must
say I do like Quickbooks way of doing things and if I were to follow
your suggested path I would probably try to copy their model.

Modal forms follow maximized/restored state of the background form,
behavior I wished to avoid. If it comes to it I will just have to
knuckle down and redesign a whole lot of forms.

Thank you so much for your suggestions it has given me another angle
with which to view our design.
Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
8910
by: Kyralessa | last post by:
In Access 2000, I have a base form with a ListBox of conference registrants. In the form's declarations section I include Dim f as Form To add a registrant I'm doing this: Set f = New Form_frmSingleRegistrant f.Caption = "New Registrant" f.cmdSave.Caption = "&Save New Registrant"
5
3320
by: will eichert | last post by:
Greetings. I have a problem with a combo box incorrectly displaying blank items when returning to a form from a modal form. It's fine when the main form first comes up, but gets messed up when the main form is reactivated following opening and closing a modal form. Strangely, this was not a problem until I started using my Access 2000 db in Access 2003 (as an Access 2000 db). Details follow... I have an unbound combo box on my main form...
2
2559
by: cassidyc | last post by:
Hi, I was wondering if anyone has come accross this issue? And if they have any solutions I have that can create new copies of itself Form1 as = new form1(); af.show(); This form can also bring up a modal dialog (MessageBox)
8
2736
by: Stephen Rice | last post by:
Hi, I have a periodic problem which I am having a real time trying to sort. Background: An MDI VB app with a DB on SQL 2000. I have wrapped all the DB access into an object which spawns a thread to access the database and then displays a modal dialog which allows the user to cancel the task, if it is taking longer than they want, and shows them a display of how long the query has been running so far.
0
987
by: steve | last post by:
Hi, In my app. Form1 Opens a Form2, which is modal so Form1 is inaccesible till Form2 gets closed. But If I minimize Form2, Form1 stays in the desktop. Is there a way to achieve the effect of minimizing both at the same time through Form1 ? Thanx in advance -steve
0
1428
by: ApexData | last post by:
I Want Access FIND&REPLACE to stay in FIND mode. Can I place the (Access FIND&REPLACE Dialog) in a popup/modal dialog form? I need to control this process to prevent the user from pressing keys on the MainForm that will cause the Forms AllowEdit to become True, in-turn putting REPLACE back on! I DONOT want this to happen.
7
17703
by: peridian | last post by:
Hello, This may seem really stupid, but what's the best way to return data from a Modal form?? It seems that Access uses a different Forms library to the other MS apps, and does not have the usual .Show member. I have a form I have set as Modal in its Form properties. I have a Class module with properties (i.e. my data object). The form has a private instance of this class, and as options are selected and set on the form, the data is...
2
3518
by: diogenes | last post by:
I have created many shortcut/popup (aka context, or right-click) menus for my application - instead of toolbars or standard drop-down menus. Within my custom menu, I am using =ShowMainMenu("item") in the On Action event where ShowMainMenu is a public function in frmMain, and "item" is a string mapping to a button click event. (error trapping omitted) Public Function ShowMainMenu(strItem As String) As Boolean
4
4560
by: =?Utf-8?B?Z2luYWNyZXNzZQ==?= | last post by:
I am trying to close/dispose multiple instances of a form but because they are modal and hidden, they do not show up in My.Application.OpenForms. They must be modal, so making them modeless is not an option. I also need to check the values in a spread control on the forms before I close/dispose them. I'm using VB 2005. Is there some way for me to do this?
0
9271
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10028
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9868
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9836
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8709
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6533
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5139
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3352
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2664
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.