I've got a continuous form that opens basically as a report layout. It has print preview button on it that takes the user to a preview of a report representation of the data. In the code for this button I have already made it so that any filters put on during the form view would be carried over when the report is opened i.e.
Code:
DoCmd.OpenReport "rptBacklog", acViewPreview, , Me.Filter
However I found out that this of course doesn't carry over any sorts. I was wondering how to carry that over as well. Is it as simple as "Me.OrderBy"? If so, how would I lay it out? This doesn't seem to be quite right:
Code:
DoCmd.OpenReport "rptBacklog", acViewPreview, , Me.Filter & Me.OrderBy
Thanks.