Hi again :)
I have a form that user enters parameters into which then pops up another form with results filtered by the chosen parameter (field in table)
What I'd like to do is order the results from the query it fires by a record set of my choosing. I think I'm on the right track by trying to edit the sql that is passed to the query but it doesn't seem to work.....
Example from form that runs the query filtering by 'section/faculty' record:
If [Section/Faculty] <> "" Then
If Counter <> 0 Then
b = "AND (([Car Records].[Section/Faculty]) = [Forms]![Search Facility]![Section/Faculty])"
Else: b = "FROM [Car Records] WHERE ((([Car Records].[Section/Faculty]) = [Forms]![Search Facility]![Section/Faculty])"
End If
Counter = Counter + 1
Else: b = ""
End If
I thought I could add:
ORDER BY [Car Records].[FullName]
to the end of the sql query but i'm getting something wrong - it tends to delete the query and I get a missing operator message after it runs??
Am I close or on the wrong track please?