Populate a datasheet and extraction of data from datasheet

Savita

Registered User.
Local time
Tomorrow, 04:56
Joined
Sep 1, 2007
Messages
14
Hi,

There is a requirement for
1)Populating a datasheet in a subform with a querystring which is dynamically built in VBA.This querystring is constructed based on the search criteria fields selected by the user in the main form.How can this be immplemented?

2_To click/double click a record in the datasheet,extract data and populate textfields,comboboxes with it which are in the main form.How is this achieved?Also,I can't find click events in a datasheet.

Pls let me know.
Thanks,
Savita
 
Thanks for sending the link.As per the example given in the link,I used the following code in the form_load() event to populate the subform(Child0) and display records in the datasheet view.
Me.Child0.Form.Recordsource=strSql (strSql is a query string which has a join on 2 tables)
But I got the following error,"The expression you entered refers to an object that is closed or does not exist".Pls let me know the solution for this.

2)How can I extract data from the subform in datasheet view on double clicking a record?I want to populate textfields and comboboxes with this data.

Savita
 
Last edited:

Users who are viewing this thread

Back
Top Bottom