C
CLSWL
1st: Where do i insert the order by criteria in a DoCmd.OpenReport?
2nd: What syntax do i use?
3rd: How do I get a string variable from a sub form to become the OrderBy
string
I have a form that filters my report. I have now created a subform to sort
the report. The subform has the following variable:
Dim Ord As String 'Variable that sets the sorting of the report
I don't know how to get that value from the sub form to the main form...
Once I do that, I don't know where to put the string in the
DoCmd.OpenReport. Does it belong in the "WhereCondition"? If so, I already
have something in that slot:
strFilter = strMod & "AND" & strWindTyp & "AND" & strDrawNo & "AND" &
strDrawTyp
strMod = "[Model].[AutoID] IN (" & Left$(strMod, l_Mod) & ")"
How do I add on to that syntax to put in the OrderBy criteria?
2nd: What syntax do i use?
3rd: How do I get a string variable from a sub form to become the OrderBy
string
I have a form that filters my report. I have now created a subform to sort
the report. The subform has the following variable:
Dim Ord As String 'Variable that sets the sorting of the report
I don't know how to get that value from the sub form to the main form...
Once I do that, I don't know where to put the string in the
DoCmd.OpenReport. Does it belong in the "WhereCondition"? If so, I already
have something in that slot:
strFilter = strMod & "AND" & strWindTyp & "AND" & strDrawNo & "AND" &
strDrawTyp
strMod = "[Model].[AutoID] IN (" & Left$(strMod, l_Mod) & ")"
How do I add on to that syntax to put in the OrderBy criteria?