How to use a command button to change the order and filter for a subform. I have a Main Form and a subform within it and was able to make it look like a list box in Dataview. However, I could not figure out how to change the order or filter for the subform in the same way as I could do for the listbox. The subform is named "Update_Manager"
This is the type of code I used in the cmd button to change the order in the list box:
strSQL = "SELECT Query1QRY.ClientName,Query1QRY.Address, Query1QRY.Value FROM Query1QRY " & _
"WHERE Query1QRY.Value > 100000 " & _
" ORDER BY [Query1QRY].[ClientName] "
Me.List259.RowSource = strSQL
How would I change this code to work in the subform. Thanks
This is the type of code I used in the cmd button to change the order in the list box:
strSQL = "SELECT Query1QRY.ClientName,Query1QRY.Address, Query1QRY.Value FROM Query1QRY " & _
"WHERE Query1QRY.Value > 100000 " & _
" ORDER BY [Query1QRY].[ClientName] "
Me.List259.RowSource = strSQL
How would I change this code to work in the subform. Thanks