Removing the gap between form detail and footer

Capitala

Member
Local time
Today, 21:58
Joined
Oct 21, 2021
Messages
85
Good day everyone!
I need urgently to remove the gap between form detail section and form footer, either by vba code or changing the properties.
Need your urgent help please
 
reduce the height of the form - you either need to be using a resizable popup or have your access settings to use overlapping windows (File>Options>Current Database) or reduce the height of the access window.

For a popup or overlapping window, you could use vba code along these lines in your form load event

Code:
me.recordset.movelast
me.insideheight=me.section(1).height+me.section(2).height+(me.section(0).height*me.recordset.recordcount)
 
Last edited:
Thanks all. I'll check out. Best regards
 
Basically, your "footer" (if it is what we normally think of as a footer) is actually just a section that has properties including .Height. Your gap at the bottom of the detail section (between detail and footer) is probably because the detail section's .Height is higher than it needs to be for your desired format.

If you can find the control that is physically the lowest one in the detail section, find that control's .Top and .Height properties and make the detail section's .Height equal to control.Top + control.Height + 1. You should also set your control borders to minimum size as well.
 
Attached a sample form (form1) with the text in footer section. you will notice the huge gap between the detail section and footer seciton.
 

Attachments

Users who are viewing this thread

Back
Top Bottom