I am having difficulty getting my sort function to work on a report. Below is the code being used in the report:
Private Sub Report_Open(Cancel As Integer)
mainsql = "SELECT Quote_Number, Company_Name, Date, Contact_Name, Contact_Number, PreparedBy FROM Quotations "
addSQL = ""
If Forms![Main...