SortByColumns(Filter('Bonus DB','File Number'= SearchBox.Text, DateValue, Date >= ddTimeSelection.Selected.StartDate && Date <= ddTimeSelection.Selected.EndDate))
Look I know Its wrong, but the idea is this.... We want the data to be sorted from the Bonus DB to allow filtering from new to old based on the users choice. We also want to search between the two Date values. I am not familiar with the syntax to integrate both of these options.
It does work fine without the date code to search based on the File Number so I know the issue is with the syntax. Issue is its fairly specific and no one has gone over it being used in this way.
(Original working code)
SortByColumns(Filter('Bonus DB','File Number'= SearchBox.Text),"PayDate", If(SortDescending1, Descending,Ascending))

Any help is appreciated.