473,513 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Issues while maximizing or restoring forms

41 New Member
Dear Bytes community, good afternoon...
It can appear to be a very sily question, but I'm having problems while trying to restore the size of a form.

In my case I have already a form opened and maximized and when I click over a control I want a second form to be opened. But this second form must be sized as "Restored" and the first one must be kept as "Maximized".

What is happening is that when I restore the second form, the first form is also restored. I want a restored form over a maximized form.

Can any body give me a tip about what my problem is?
I'm just using the instruction DOCMD.OPENFORM to open the second form and the instruction DOCMD.Restore to restore it.

Thank you in advance.

Best regards
Ricardo de Milano
Apr 22 '20 #1
3 1639
twinnyfo
3,653 Recognized Expert Moderator Specialist
Ricardo,

Unfortunately, this is less of a "problem" and more of simply how Access works with Forms. When you maximize any form, you are maximizing the application, as well. The same goes for restoring. Thus your problem.

You might be able to have the second form operate in modal and popup, without using the Restore command. I have not tested this, so you would have to do that. I typically use all modal and popup forms and only maximize when displaying reports.

An alternative, which would be more involved is to have the first form determine the screen size of the current user, then, resize itself to fill the screen (without maximizing) and then opening the second form.

Part of me wonders why the first form must be maximized? If it is simply a larger form, and sized appropriately, all should work without maximizing it.

Hope this hepps!
Apr 23 '20 #2
Ricardo de Mila
41 New Member
Dear twinnyfo...

Thank you for your valuable help.
I have understood your explanation and will test your options.
As soon as I have an exactly feedback I will post it here.

To satisfy your curiosity about why should the first form still be maximized, the explanation is:
The first form is a list of contacts with phones and e-mails etc. But the phone numbers can be showed in several formats (each phone). I can have them displayed as +# ### ###-#### or +## ## ####-#### or simply ## ####-#### or any other. So the field can not have just a mask on it. I have the field as a formula. But because of this I cannot enter the phone number in the field directly. So the solution I have found was to open a second form where the phone number will be inputed. So when the user enters in the specific control, the second form opens up. But in this case, I don't want the first form to be changed due to visual effects that would not be nice.
Hope I have satisfied your question.

Will experiment your suggestions and let you know.

Best regards
Ricardo
Apr 24 '20 #3
twinnyfo
3,653 Recognized Expert Moderator Specialist
If that is the case, you could just make the other form a sub-form that is invisible on the main form and when someone needs to enter a phone number it becomes visible, and when they are done, it becomes invisible again and updates the main form.

Lots of ways to skin your particular cat!
Apr 24 '20 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
2266
by: Tina | last post by:
Does anyone know if there are any issues with restoring Master DB onto a server running Standard Edition from a server running Enterprise Edition of SQL Server?
16
2853
by: Justin Lazanowski | last post by:
Cross posting this question on the recommendation of an I have a .NET application that I am developing in C# I am loading information in from a dataset, and then pushing the dataset to a grid,...
0
1385
by: den 2005 | last post by:
Hi everybody, I am problem with restoring data of byte type to be loaded on an Ink object. The data was earlier converted to byte then finally to hexadecimal data and store on a text file. Is...
19
4066
by: James Fortune | last post by:
I have a lot of respect for David Fenton and Allen Browne, but I don't understand why people who know how to write code to completely replace a front end do not write something that will automate...
4
6826
by: lauren quantrell | last post by:
I have an Access 2K popup form to which I have added buttons to run DoCmd.Maximize The problem is the form opens full height on the screen, with the bottom of the form hidden under the Windows...
0
1508
by: Jeff | last post by:
I am making a custom control that displays images, allows zooming in and out, and can fit the image to the control. The way I am handling all of this is probably not best, but I was looking for a...
3
2558
by: Doc John | last post by:
In my Windows application, how can I manage the size of my child Forms within my MDI Forms? For example, when I maximize one child Form, all the other Forms maximize. And I need to conserve all the...
0
7171
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...
0
7388
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,...
0
7545
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...
0
5692
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,...
0
4751
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...
0
3240
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...
0
3228
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1605
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
461
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...

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.