TruthAndBeauty
Technical User
How do I get a form's to show data from a recordset?
I'm working with Access 2000, ADO, connections and recordsets(rst). I can populate and navigate a rst several different ways. I can append rst data to a table for use by queries, forms, reports, etc.; however, I read that a form, unlike a report, can use my rst without me having to transfer the data to a table. I don't understand how fields on the form are related/bound to the fields in my rst.
In the Form ON LOAD event, I make the db connection, populate MyRST, and then ( according to the book I can Set Me.recordset = MyRST. I don't get any errors. The book doesn't go any further than this. (MYRST is adCmdTable/Static).
(FYI - tried Me.recordsource=MyRST and Me.recordsetclone=MyRST but got an error)
The form opens but since the fields aren't bound, they are blank. I know MyRST is populated with over 200 records. I see on the form (continuous) that the record navigator shows over 200 records though no data is shown in the body of the form. How do I get the form's fields to show the MyRST (Me.Recordset) data?
I would appreciate any suggestions.
Robert
I'm working with Access 2000, ADO, connections and recordsets(rst). I can populate and navigate a rst several different ways. I can append rst data to a table for use by queries, forms, reports, etc.; however, I read that a form, unlike a report, can use my rst without me having to transfer the data to a table. I don't understand how fields on the form are related/bound to the fields in my rst.
In the Form ON LOAD event, I make the db connection, populate MyRST, and then ( according to the book I can Set Me.recordset = MyRST. I don't get any errors. The book doesn't go any further than this. (MYRST is adCmdTable/Static).
(FYI - tried Me.recordsource=MyRST and Me.recordsetclone=MyRST but got an error)
The form opens but since the fields aren't bound, they are blank. I know MyRST is populated with over 200 records. I see on the form (continuous) that the record navigator shows over 200 records though no data is shown in the body of the form. How do I get the form's fields to show the MyRST (Me.Recordset) data?
I would appreciate any suggestions.
Robert