y700
You can't! And if you could, it would be a very bad idea
for many reasons.
For a form, you need to put the data in a table and bind the
form to the table. Even then, you may not get a decent
looking display.
For reports, precreate a sufficient number of invisible
controls on an unbound report. Then use the report's Open
event to initialize the array index:
arrayindex = 0
The Detail section's Format event can be used to process
each row in the array one at a time making the appropriate
controls visible/invisible and whatever else you want to do.
The last lines in the event procedure would be like:
Me.NextRecord = arrayindex < UBound(array)
arrayindex = arrayindex +1
to tell the report you are done with an array row and
whether there are more to process or not.
You can do quite a bit with an unbound report, but there are
several features that are useless.
--
Marsh
MVP [MS Access]
Approach to pre-create hundreds of control to use just a few of them seams
like big waist of energy and resources, human and computer. That is why smart
people came with the concept of dynamic arrays. It is pity that Access does
not support such concepts as dynamic forms.
E.D.
>Unfortunately, I have expected this answer.
>So I did a mixed approch. I populated the 'temp' table and created report
>bound to that table. It works.
>
>Approach to pre-create hundreds of control to use just a few of them seams
>like big waist of energy and resources, human and computer. That is why smart
>people came with the concept of dynamic arrays. It is pity that Access does
>not support such concepts as dynamic forms.
For your situation a continuous form would work well.
Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/