T TimE Registered User. Local time Today, 05:59 Joined May 17, 2005 Messages 55 Aug 23, 2007 #1 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.
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.
T TimE Registered User. Local time Today, 05:59 Joined May 17, 2005 Messages 55 Aug 23, 2007 #2 Sorry for jumping the gun, but I found out how to use: Code: DoCmd.OpenReport stDocName, acPreview, , , , OpenArgs:=
Sorry for jumping the gun, but I found out how to use: Code: DoCmd.OpenReport stDocName, acPreview, , , , OpenArgs:=