Steve,
I am sorry to have confused you.
Yes the subform is for data entry. However the user has to know what
field that s/he is entering the data value. There are over two dozen
values
to enter. So I display a grid with two colums. The first column
contains
the caption that would normally be in a label for a textbox. The
second field
is the textbox into which the data is entered.
Consider that this ADODB.RecordSet is disconnected and created in the
VB code.
I also populate the labels column and put a zero in the data field.
Perhaps 8 pairs are displayed but as the user enters the data the grid
(aka datasheet) scrolls to reveal more fields. When it is complete, I
read the data in this disconnected RecordSet and use append queries to
post the data to the real tables.
It is a workable solution... but the solution that Kyle wrote and I
quoted in the intial posting works only for the Main form. My original
question was
how to make it work for a subform.
I hope this clarifies the issue.
Thanks, Steve.
IanO
I don't understand. You said you wanted it to be in data entry mode,
therefore it would be empty until you added a record. I was suggesting
another way to achieve that by using a where clause instead of the form's data
entry mode.