How do new Contorls appear automatically?

scottydel

Registered User.
Local time
Today, 05:05
Joined
Apr 18, 2007
Messages
35
Hi,

I was given form as a "guideline" to use for some development. The form has three controls in its Details section: combobox, textbox, command button. The are displayed in a "row" on the form:

COMB TXT CMD

When a value is selected in the combobox, a new row of the same three controls is added underneath. This repeats as many times as you select a value in the newest combobox (the one in the bottom row). So you can easily end up with something that looks like:

COMB TXT CMD
COMB TXT CMD
COMB TXT CMD
COMB TXT CMD
.
.
.


The Details section only has the three controls. I have checked the code and there are not Macros or Events with any code. There must be a property set so that new "rows" of the three controls will be added automatically when appropriate. I've poked around the Properties of the controls and the Details section, but haven't found out how this works.

Anyone know how this is is happening?

Thanks,

Scott
 
is the default view of the form set to single or continuous?
 
Default View is set to Continuous Forms. Is that the trick?
 
They're not "new" controls, simply additional copies , if you will. In a continuous form, any control added to a record is added to all records. If you only want a control to appear once on this type of form it needs to go in the header or footer section of the form. Any formatting you do to these controls, such as changing a textbox' color, will be done to all of them, unless you use Conditional Formatting.
 
For the form I'm working on, I would like one text box to appear for each field in a record. I have bound my form to a query that returns three records. Each record has four fields.

So ideally I would like three "rows" of four textboxes, each row holding the fields of a record:

Field1 Field2 Field3 Field4 (record 1)
Field1 Field2 Field3 Field4 (record 2)
Field1 Field2 Field3 Field4 (record 3)

I have set my form to "continuous view", but it still only displays one "row" of four text boxes.

Am I understanding "continuous view" correctly? Shouldn't it make a "copy" of the four text boxes, one for each record?

Thanks,

Scott
 
Ok nevermind. The Details section wasn't resized yet. I was getting all of the records, I just couldn't see them cuz the form's size was too small :P

-Scott
 

Users who are viewing this thread

Back
Top Bottom