473,836 Members | 1,437 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to change the height of the 'detail' part of a form?

sueb
379 Contributor
I know how to set this Property, but what I'm really asking is how I can set it to something smaller than it wants to be.

On a continuous subform, I have a set of fields (all at the bottom of the Detail section) that normally I want to be invisible. On the click of a button, I want to set all their Visible properties to True.

So when the fields are invisible, I'd like to set the height of the Detail section to exclude the "real estate" reserved for the invisible fields, and then, on the click of the button, reset the height at the same time that I set the visibility properties.

Can this be done?
Jun 30 '11
39 12796
NeoPa
32,584 Recognized Expert Moderator MVP
Design Mode is generally available to designers (such as yourself) when designing the various forms and other objects in your database. However, opening an object in Design Mode can also be done using code. It's less common certainly, and comes with a few gotchas that you should be careful of, but the option is there.

Design changes may be made by code when the object (form) is open and in normal use, but such changes are session level. They only persist for the duration of the current session and would not effect another user who had the same object open at the same time. If the object is opened in Design Mode though, and changes are made then the object is saved, this new version becomes the object for future uses. It is very rarely a good idea to work that way, but the facility is available should you choose to (If you hadn't got it before, I certainly wouldn't recommend using this facility).

Sue, You said before :
Just so it's clear: I need to be able to make this change at the request of the user.
I'm still not clear what you meant by that. Did you possibly mean you wanted the user to be able to make such a request of you personally and you would design it into the database? That's what the wording implies.

If you want to design the database such that a user could choose to move the tab control and its contents to another section on the click of a button then that's something else again.

As I say, I'm still not sure.
Jul 6 '11 #31
sueb
379 Contributor
NeoPa, what I need is the latter: in other words, I want to put a button on a form that displays an otherwise-invisible tab control.
Jul 6 '11 #32
NeoPa
32,584 Recognized Expert Moderator MVP
From that last comment the solution is easy. Unfortunately, I believe we've already been there and you weren't happy because you needed the tab control and its contents not even to be there as invisible on the form due to the constraints which that put on the size of the section it was contained within. As such, this only seems to leads us around the same circle again.

At one point you were attempting to move the tab control and all its contents into another section. How far did you get with that and was it ultimately helpful?
Jul 6 '11 #33
Mihail
759 Contributor
Hi all !
Maybe my english is not enough to understand the problem. So sorry if my idea can't work.
Sueb, take a look to InsideHeight command (Me.InsideHeight = ....). I think that is the answer to your problem IF you use Overlaping Windows. For Tabbed Documents do not work.
Attached Files
File Type: zip Database1.zip (31.1 KB, 151 views)
Jul 7 '11 #34
sueb
379 Contributor
Mihail, what version is that attachment? I have 2003, and it can't open it.
Jul 19 '11 #35
Mihail
759 Contributor
Is 2007.

Look: Create 2 buttons (Command1 and Command2) then use the CLICK event for each one.

Expand|Select|Wrap|Line Numbers
  1. Private Sub Command1_Click()
  2.     Me.InsideHeight = Me.InsideHeight + 100
  3. End Sub
  4.  
  5. Private Sub Command2_Click()
  6.     Me.InsideHeight = Me.InsideHeight - 100
  7. End Sub
Do not forget: Overlapping windows for your forms.
Hope the code work in 2003. I can't test it in this version.
Jul 20 '11 #36
sueb
379 Contributor
Mihail, also I don't know what Overlapping Windows is. Can you please explain?
Jul 20 '11 #37
Mihail
759 Contributor
I try to explain using my poor English.

I do not know if "Overlappin g Windows" exist in 2003 version.
If you open more forms (2, 3, 4 .... ) in the same time you can see as many windows as opened forms (as usual windows in Windows operating system) but using only the Access window area.

On the other hand you can set the form to be as large as the Access window. In this case you'll see only one form at a time. This is NOT "Overlappin g Windows" (2007 say that is "Tabbed document").

Maybe someone else wish to explain better using a true English :)
Jul 20 '11 #38
Adam Tippelt
137 New Member
Basically Microsoft has done for Access 2007 what browsers have done to internet pages - the windows now have tabs to allow the user to easily switch between opened forms within the same Access window, so multiple forms can be open and accessed at once.
Tabs can however be turned off in the database settings if you want to hide them from users.
Jul 20 '11 #39
sueb
379 Contributor
I see. No, I don't think that 2003 has tabbed windows. What I've done with some of my forms and reports is to "free" them from the Access window area by making them pop-ups. That seems to work pretty well.
Jul 20 '11 #40

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

Similar topics

5
18729
by: Kevin Myers | last post by:
How can one obtain obtain the height of a MS Access 2K form? There is a width property, but I don't see a corresponding height property. I need to obtain the height of the form so that I can dynamically resize an object on the form in the form's Form_Resize method when a user resizes the form, both horizontally and vertically. Thanks, s/KAM
1
1346
by: ILCSP | last post by:
Hello, is there a way to display a button in the detail part of a continous form ONLY for the last record? I want to have an "ADD" button at in the same row as the last record, but if I place it there, it becomes an all or nothing issue- it displays in all the records. Is there a way I can first set the property to invisible and then using some code to display this button only in the last row? Thanks.
3
15937
by: xbox | last post by:
Hi, Its weird bu I cant seem to change the height of the textbox that I place on a form at design time. ideas? Thanks in advance, xbox
4
2161
by: K.N.Ranjit | last post by:
Hi, This is the 4th mail I'm sending regarding this problem. I'm really not been able to sort this problem out.I'm not been able to change my starting position of my cordinates from top-left to bottom-left of my form.Thrice I got the reply but unfortunately it did'nt work.Here is my coding. private sub form_load(...) dim y as integer y=me.height location.y = 0-y
5
2731
by: green51 | last post by:
I am tracking projects with the month, start date, end date and the individuals assigned to the project. There will be anywhere between 1 and 14 individuals assigned to the project. I have a query that groups all of this information together their name are in a combo box; I also have set the CanShrink box to “YES”. The extra white space is in the Detail part of the report. My problem is when I generate a report the same amount of space between...
2
1855
by: beenanic | last post by:
How I can read a parameter from a multi-part form?
6
3331
by: happyse27 | last post by:
Hi All, How do I change the height of the main menu as the height is inconsistent due to some of main menu's item stretches to 2 rows while, the other main menu's items are stretched to 1 row. Code is below Cheers... Andrew
7
1529
by: gmiotke | last post by:
I know that this is easy for those that know but alas this is not me ;) I have a multi part form that is going to write to a dB. As a point of reference I can offer geico.com (i.e., the quote process) as a model for my project. I need to write a record on the first page and then use the auto number generated from this to populate the child records with the parent's key field. What I was hoping to do is write the record and then...
2
3447
sueb
by: sueb | last post by:
I have a new single-table database (it hasn't been released to the users at all yet) in which I've created two forms that look at the same data: one form which has a spread-sheet-like format, and displays a few fields for all the records in the table, and another form that displays all the fields for a single record at a time. I'd like to be able to have a button on the summary form that opens the detail form for the particular record selected...
0
9813
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9665
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
10835
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
10541
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...
0
9367
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...
1
7785
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6976
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
5645
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...
3
3108
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.