G
Glenn Suggs
Is it possible to set the OrderBy property for a form based on a query during
the Form Open event? There will be 3 choices for how the user wants to view
the records and I'd rather not create 3 queries and 3 forms to handle the
choices. I'm looking for an example in code of how this might be done.
I tried this:
Me.OrderBy = Me.txtAddress
Me.OrderByOn = True
But it didn't seem to work. It prompted me for a value.
Thanks in advance,
the Form Open event? There will be 3 choices for how the user wants to view
the records and I'd rather not create 3 queries and 3 forms to handle the
choices. I'm looking for an example in code of how this might be done.
I tried this:
Me.OrderBy = Me.txtAddress
Me.OrderByOn = True
But it didn't seem to work. It prompted me for a value.
Thanks in advance,