?
Solved

Variable Length SubForm

Posted on 2001-09-13
11
Medium Priority
?
380 Views
Last Modified: 2011-09-20
Is there a way to have a variable length subform append its records in multiple columns, rather than just vertically?
0
Comment
Question by:mcarollo1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
11 Comments
 
LVL 2

Expert Comment

by:hotbudare
ID: 6481464
No, as far as I know, you can't.
There might be a workaround if the maximum number of records is known. Let us know if that's the case.
0
 

Author Comment

by:mcarollo1
ID: 6482730
The maximum number of records can be assumed.  ex. I know there will never be more than 12.
0
 
LVL 54

Expert Comment

by:nico5038
ID: 6485048
This can be "tricked" in various ways. One would be to create twelve subforms and make them visible when there is data. Another way could be adding columns in a datasheet subform.
I'm just curious why you want to go horizontally iso "unlimited" vertically....

Nic;o)
0
10 Questions to Ask when Buying Backup Software

Choosing the right backup solution for your organization can be a daunting task. To make the selection process easier, ask solution providers these 10 key questions.

 

Author Comment

by:mcarollo1
ID: 6485110
can you expand on the 12 subforms idea?
0
 
LVL 54

Expert Comment

by:nico5038
ID: 6485231
For this easiest will be to have a sequence number (1-12) in the data. This will enable you to do a link between an unbound field per subform (filled with 1-12) on the main form and the datafield of the subform to have the data automatically in the correct subform.
If wanted you could make the empty subform(s) invisible, however that will take extra VBA coding.

Need more info ?

Nic;o)
0
 

Author Comment

by:mcarollo1
ID: 6487803
How is that done?
0
 
LVL 54

Expert Comment

by:nico5038
ID: 6488020
Can you drop the (compacted and zipped) .mdb in my nico5038 mailbox "at" yahoo.com.
The I'll make a sample.

Nic;o)
0
 

Author Comment

by:mcarollo1
ID: 6505662
OK, I'm sending an example to your yahoo address
0
 
LVL 54

Accepted Solution

by:
nico5038 earned 200 total points
ID: 6506904
Check your mail.

For making columns I added a MOD to "split" the subform's records into two columns, enabling an "Unlimited" number of rows.

Nic;o)
0
 

Author Comment

by:mcarollo1
ID: 6506994
Very creative.  Thanks for your help!
0
 
LVL 54

Expert Comment

by:nico5038
ID: 6507024
You're welcome, success with the application !

Nic;o)
0

Featured Post

How Blockchain Is Impacting Every Industry

Blockchain expert Alex Tapscott talks to Acronis VP Frank Jablonski about this revolutionary technology and how it's making inroads into other industries and facets of everyday life.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question