G
Guest
I want to let the user select how they want to sort a report. I've give the
user a message which they respond to with a Yes or No. I then test the
response and if Yes I set the me.orderby = "lastName" and if No I set the
me.orderby = "acctNumber" I have also set the me.orderbyon = true. I then do
the docmd.openreport (formName), , stdcriteria (which is set to a where
clause) the where clause works but the orderby doesn't do anything. What am
I doing wrong. Thanks for any help.
CD Tom
user a message which they respond to with a Yes or No. I then test the
response and if Yes I set the me.orderby = "lastName" and if No I set the
me.orderby = "acctNumber" I have also set the me.orderbyon = true. I then do
the docmd.openreport (formName), , stdcriteria (which is set to a where
clause) the where clause works but the orderby doesn't do anything. What am
I doing wrong. Thanks for any help.
CD Tom