I need help with the Syntax for "GroupSortFields" Below is my code. I get an error: "Invalid Field name"
the name is not invalid. The same name is used and works with the Sortfields option. When I comment out the Sortfields option and just use >groupsortfields, I get the error. HELP!
With repCR1
.WindowState = crptMaximized
.ReportFileName = App.Path & "\shx12.rpt"
.GroupSortFields(0) = "+" & "{" & Psort & "}"
'.SortFields(0) = "+" & "{" & Psort & "}"
.ReportSource = 0
.WindowTitle = "Dictionary ID Report"
.DataFiles(0) = db.Name
.Destination = crptToWindow 'print preview
.Action = 0
End With
the name is not invalid. The same name is used and works with the Sortfields option. When I comment out the Sortfields option and just use >groupsortfields, I get the error. HELP!
With repCR1
.WindowState = crptMaximized
.ReportFileName = App.Path & "\shx12.rpt"
.GroupSortFields(0) = "+" & "{" & Psort & "}"
'.SortFields(0) = "+" & "{" & Psort & "}"
.ReportSource = 0
.WindowTitle = "Dictionary ID Report"
.DataFiles(0) = db.Name
.Destination = crptToWindow 'print preview
.Action = 0
End With