austin3515
Board Regular
- Joined
- Dec 19, 2010
- Messages
- 80
Trying to open a form and sort it as I've indicated below. I want to sort using the open args of this command because depending on which line of code I use to open the form, a different sort order applies. The form is based on a query that joins two tables together by a common field.
DoCmd.OpenForm "frm1099Data", , , "Reviewer = '" & Me.cmbReviewer & "'", , , "ORDER BY qry1099Log.fldLocked, qry1099Log.fldReviewer, qry1099Log.[Plan Name]"
The previous code does NOT apply any sorting. Also, when I look at the Data properties of the form, the Order Property is blank.
DoCmd.OpenForm "frm1099Data", , , "Reviewer = '" & Me.cmbReviewer & "'", , , "ORDER BY qry1099Log.fldLocked, qry1099Log.fldReviewer, qry1099Log.[Plan Name]"
The previous code does NOT apply any sorting. Also, when I look at the Data properties of the form, the Order Property is blank.