Expandable Forms

Thales750

Formerly Jsanders
Local time
Today, 17:08
Joined
Dec 20, 2007
Messages
3,378
Has anyone worked out a way to make expandable forms in Access
 
Can you be more specific in what you want to expand? We have heard of a move for new versions of Access to break some form/report size limits that would perhaps contribute to expanding forms (by making a lot more room). It is possible for you to dynamically change the height or width of a form or report up to 22.75 inches for a given section. You could surely create a sub-form in continuous form or datasheet view and dynamically change the size of the control. You can even make things visible or not, and take up more or less room accordingly. But were any of those ideas relevant to what you were asking?

We can't forget that forms exist in windows, and to make a form bigger you might have to use an API call to expand the size of the window in which your form resides.
 
Like an outline in a Word Doc . A Tree would be similar
Click a heading, it expands. It would actually be nice if Microsoft made Access able to make the kinds of forms available on Website databases in general.
 
I think I'm gong to repurposed one my "not for Win 11" pcs to run Linux on it, and and get the GPT to help me build a web based "Local" database from scratch. Something I should have done years ago.

Sidebar: I'm going to start a new thread Doc about my recent experience using the GPT for developing in Python.

I've been dissatisfied with the lack of new features (in Access) and inadequate web integration for some time.
 
Click a heading, it expands. It would actually be nice if Microsoft made Access able to make the kinds of forms available on Website databases in general.
you can make it happen using VBA. I've seen many samples in this forum, lately.
 
Like an outline in a Word Doc . A Tree would be similar
Click a heading, it expands. It would actually be nice if Microsoft made Access able to make the kinds of forms available on Website databases in general.

There IS such a thing as a TreeView in Access.



 
Treeviews are definitely worth looking at.
Perhaps this idea will also be useful

 
I think I'm gong to repurposed one my "not for Win 11" pcs to run Linux on it, and and get the GPT to help me build a web based "Local" database from scratch. Something I should have done years ago.

Sidebar: I'm going to start a new thread Doc about my recent experience using the GPT for developing in Python.

I've been dissatisfied with the lack of new features (in Access) and
inadequate web integration for some time.
"...inadequate web integration for some time."

You probably remember two previous attempts to "Webify" Access. First in 2010 and then in 2013.
The problems associated with making Access work in the web environment are simply too hard to overcome. Plus given the fact that there are multiple alternatives, including the Microsoft PowerApps platform, it makes little sense to worry about too much about web integration for Access.

In the future, I foresee a category of hybrid apps, with rich, powerful Access interfaces on the desktop linked to cloud databases of some sort, probably SQL Server or Azure SQL, along with one or more browser-based interfaces to that same cloud database to support those functions that can benefit from a mobile, off-premises presence.

There's little incentive, I think, to try to return to the attempt to put Access in a browser given the other, more powerful options available for that purpose.

Granted, that means expanding your skillset dramatically, or perhaps not so dramatically. But definitely, to some extent you'll need to acquire new skills. On the other hand, it sounds like you're up for that challenge, so the opportunity is there.
 
"...inadequate web integration for some time."

You probably remember two previous attempts to "Webify" Access. First in 2010 and then in 2013.
The problems associated with making Access work in the web environment are simply too hard to overcome. Plus given the fact that there are multiple alternatives, including the Microsoft PowerApps platform, it makes little sense to worry about too much about web integration for Access.

In the future, I foresee a category of hybrid apps, with rich, powerful Access interfaces on the desktop linked to cloud databases of some sort, probably SQL Server or Azure SQL, along with one or more browser-based interfaces to that same cloud database to support those functions that can benefit from a mobile, off-premises presence.

There's little incentive, I think, to try to return to the attempt to put Access in a browser given the other, more powerful options available for that purpose.

Granted, that means expanding your skillset dramatically, or perhaps not so dramatically. But definitely, to some extent you'll need to acquire new skills. On the other hand, it sounds like you're up for that challenge, so the opportunity is there.
That is exactly what I am building right now. As far as the skillset, Well, I'm getting the GPT to do Python coding and I'm acting like a designer not a developer. I'm going to start a new thread on what I have learned in the last few hundred hours of this project.
 
There IS such a thing as a TreeView in Access.



Thanks Doc,
 
Working closely with @dalski on a pretty robust treeview application
This is a large outlines of up to about 7k nodes. The levels are added dynamically and outlined numbered as nodes are added, deleted, and moved.
 
Also if it is for display purposes and limited functionality you can use subdatasheets. If you are careful in what you show and play with the formatting you can make them pretty understandable. People often criticize them because users try to do too much with them and do not format them to make understandable.
 
if you are looking for something to expand/collapse section of a form and
not a Treeview, then see if this demo is close to your need.

open MainForm.

// Edit: updated the code on the form.
 

Attachments

Last edited:
Has anyone worked out a way to make expandable forms in Access
Web browser controls do it. You will have to code it yourself though. The link in post #11 will take you to an example you can adapt.

If you only require one level, you have a few options, such as:
1. Report embedded in report
2. Subform height programming
3. Section height programming

If you have the Edge browser control enabled, you could even import a react library for UI such as Ant Design and do cool stuff like:
https://ant.design/components/table#table-demo-nested-table <-- nest tables, anything really
https://ant.design/components/table#table-demo-tree-data <-- nest whatever in a row, can be a nested row
https://ant.design/components/collapse <-- nest whatever you need to any level
https://ant.design/components/tree <-- use the icon to embed whatever in the tree
 
this one has much better in UI.
you can even save the "state" of each section on the table.
 

Attachments

Users who are viewing this thread

Back
Top Bottom