simon373
Programmer
- Oct 25, 2006
- 25
Hi,
I have a form which displays a list of equipment by manufacurer. I would like the order of the equipment to be sorted alphabetically by manufacturer when the form is opened. However, The manufacturer name is retrieved via a query using the manufacturer ID. Therefore, on the form, I am only able to sort by manufacturer ID (as shown below). Could anyone please advise how I would sort by manufacturer name bearing in mind that it is retrieved through a query.
Private Sub Form_Open(Cancel As Integer)
Me.OrderBy = "ManufacturerID"
Me.OrderByOn = True
End Sub
Many thanks.
Simon.
I have a form which displays a list of equipment by manufacurer. I would like the order of the equipment to be sorted alphabetically by manufacturer when the form is opened. However, The manufacturer name is retrieved via a query using the manufacturer ID. Therefore, on the form, I am only able to sort by manufacturer ID (as shown below). Could anyone please advise how I would sort by manufacturer name bearing in mind that it is retrieved through a query.
Private Sub Form_Open(Cancel As Integer)
Me.OrderBy = "ManufacturerID"
Me.OrderByOn = True
End Sub
Many thanks.
Simon.