I have a query that i wanted ordered by most recent date so that the note date shows July first, then June, then May and so on.
heres my sql
strSQL = "SELECT tblCollectionNotes.NoteID, tblCollectionNotes.CustID, tblCollectionNotes.CollNote, " & _
"tblCollectionNotes.NoteDate, tblCollectionNotes.InvoiceNumber " & _
"FROM tblCollectionNotes, tblDelinquentInvoices " & _
"WHERE (((tblCollectionNotes.CustID)='" & gstrCurCustID & "'))" & _
"and tblCollectionNotes.CustID = tblDelinquentInvoices.CustID and " & _
"tblCollectionNotes.InvoiceNumber = tblDelinquentInvoices.InvcNum " & _
"ORDER BY tblCollectionNotes.NoteDate;"
heres my sql
strSQL = "SELECT tblCollectionNotes.NoteID, tblCollectionNotes.CustID, tblCollectionNotes.CollNote, " & _
"tblCollectionNotes.NoteDate, tblCollectionNotes.InvoiceNumber " & _
"FROM tblCollectionNotes, tblDelinquentInvoices " & _
"WHERE (((tblCollectionNotes.CustID)='" & gstrCurCustID & "'))" & _
"and tblCollectionNotes.CustID = tblDelinquentInvoices.CustID and " & _
"tblCollectionNotes.InvoiceNumber = tblDelinquentInvoices.InvcNum " & _
"ORDER BY tblCollectionNotes.NoteDate;"