G
Guest
I have a subform that I'd like to have resorted when a command button is
clicked. The subform uses a table as it's control source. When the form is
opened the subform comes up sorted by values set in the Order By property of
the subform (ie: Order By: table1.Field1) which is correct..
the problem is when the button is clicked. I have the following code:
Forms![MyForm]![table1 subform].OrderBy = "[Field2]"
Forms![MyForm]![table1 subform].OrderByOn = True
I keep on getting the following message after the first line is executed:
"object doesn't support property method "
any help is appreciated again in advance.. Thanks!
clicked. The subform uses a table as it's control source. When the form is
opened the subform comes up sorted by values set in the Order By property of
the subform (ie: Order By: table1.Field1) which is correct..
the problem is when the button is clicked. I have the following code:
Forms![MyForm]![table1 subform].OrderBy = "[Field2]"
Forms![MyForm]![table1 subform].OrderByOn = True
I keep on getting the following message after the first line is executed:
"object doesn't support property method "
any help is appreciated again in advance.. Thanks!