Minggu, 01 Desember 2013

[MS_AccessPros] Search data of subform from Main Form

 

Dear group,

           I have search combo boxes in the main form header to search and filter data contained in the main form fields. The main form also contains sub-form and I am not able to construct a search string to search for data contained in the subform. Require help for the same.

           I tried with the following code but it is throwing up some error and not filtering the sub-form

 

If Not IsNull(Me.cboSearchSEnum) Then
        strWhere = strWhere & "(Me.child59.SESNum Like """ & Me.[cboSearchSEnum] & """) AND "

End If

 

Child 59 is the subform name and SESNum is the field in the sub-form which I am trying to find, cboSearchSENum is the search combo box on the main form header which lists the SESnumbers of the Subform.

 

Regards,

Kumar

__._,_.___
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (1)
Recent Activity:
.

__,_._,___

Tidak ada komentar:

Posting Komentar