Using OrderBy when opening report from Form

TimE

Registered User.
Local time
Today, 04:29
Joined
May 17, 2005
Messages
55
When opening a report from a form, I would like to sort the report by a certain field.

I am using:

Code:
DoCmd.OpenReport stDocName, acPreview

and am not sure where the OrderBy = "field_name" goes.
 
Sorry for jumping the gun, but I found out how to use:

Code:
DoCmd.OpenReport stDocName, acPreview, , , , OpenArgs:=
 

Users who are viewing this thread

Back
Top Bottom