Solved

Variable Length SubForm

Posted on 2001-09-13
11
333 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
  • 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
 

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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

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 50 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Most if not all databases provide tools to filter data; even simple mail-merge programs might offer basic filtering capabilities. This is so important that, although Access has many built-in features to help the user in this task, developers often n…
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

759 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now