Hi Liza,
Does this KB article help?
How to Display Line Numbers on Subform Records
http://support.microsoft.com/?id=210340
Tom
_______________________________________
I believe your suggestion and explanation are great. Please allow me to ask some dummy question
as I am not familiar with Access. It seems subform is very difficult to handle by codes.
What you mean is when I build a table I should have this Line Number field at the very beginning?
And the third argument "ID=" means foreign key (not primary key) of the table?
My another dummy question is does subform only accept query as Control Source? What if I have a
recordsets, can I write (insert) the record of the recordsets one by one to the rows of subform?
The reason that I want to do it all by codes is I want a full control of my application. Query
will update the table every time when a form is closed or navigating to another record.
Since my main and subform are unbound forms and have not link to each other, I need to use Select
... Case to assign the Control Source to dispplay the data. I am not sure if mine is a correct
approach. Please advise.