D
Don
Instead of haveing to create three different reports, here
is whtat I would like to do.....
I have a button on a form that opens a report in print
Preview mode. For simplicity, let's assume there are only
three fields on this report..... Field1, Field2, Field3.
I'd like to put Radio Buttons on my form, letting the user
choose which of the three fields they wish to sort by.
Now, I can easily create three different reports that will
accomplish this, but of course, I want to expand my
knowledge a little.
How can I accomplish this easily? I see the "order by"
property, but there isn't a good example of how this works
in the Help Files.
Perhaps I have to change the report's recordsource
property?
And when I do this, where do I put the code? Should in be
in the report's "On Open" Event, or should it be in the
Button's "On Click" Event? Any guidance would surely be
appreciated.
is whtat I would like to do.....
I have a button on a form that opens a report in print
Preview mode. For simplicity, let's assume there are only
three fields on this report..... Field1, Field2, Field3.
I'd like to put Radio Buttons on my form, letting the user
choose which of the three fields they wish to sort by.
Now, I can easily create three different reports that will
accomplish this, but of course, I want to expand my
knowledge a little.
How can I accomplish this easily? I see the "order by"
property, but there isn't a good example of how this works
in the Help Files.
Perhaps I have to change the report's recordsource
property?
And when I do this, where do I put the code? Should in be
in the report's "On Open" Event, or should it be in the
Button's "On Click" Event? Any guidance would surely be
appreciated.