W
Will G
Hello i am new to access dabase developement and i am trying to sort a table
subform that's on a form, but the sort if made through a click action on a
search cmd on anther form.
details:
subform name.......SubformItems(a table or query)
frm that contains the subform.....frmSearchItems
frm with the search command......frmMain
i tried this code bellow but it didnt work. this code should go on the
record source of the subform. i dont know what's wrong with my code. can
anyone help
strSQL="Select * from qrMatt where"
strSQL=strSQL & " ModelNumber=" & main!ModelNumber
Forms!frmSearchItems!SubFormName.Form.RecordSource=strSQL
any suggestion....
subform that's on a form, but the sort if made through a click action on a
search cmd on anther form.
details:
subform name.......SubformItems(a table or query)
frm that contains the subform.....frmSearchItems
frm with the search command......frmMain
i tried this code bellow but it didnt work. this code should go on the
record source of the subform. i dont know what's wrong with my code. can
anyone help
strSQL="Select * from qrMatt where"
strSQL=strSQL & " ModelNumber=" & main!ModelNumber
Forms!frmSearchItems!SubFormName.Form.RecordSource=strSQL
any suggestion....