I have 2 table in ms access (Table A and table B).I am doing a search function which able to search the record on this 2 different table. how to do that? how to set the source?
Here is the coding for me to search record just only from Table A but i would like to make it search on Table B as well..
Private Sub btnSearch_Click()
Me.frmsubTableA.Form.RecordSource = "SELECT * FROM TableAQuery1 " & BuildFilter
' Requery the subform
Me.frmsubTableA.Requery
End Sub
Here is the coding for me to search record just only from Table A but i would like to make it search on Table B as well..

Private Sub btnSearch_Click()
Me.frmsubTableA.Form.RecordSource = "SELECT * FROM TableAQuery1 " & BuildFilter
' Requery the subform
Me.frmsubTableA.Requery
End Sub