Hello I am trying to get the following code to work:
Private Sub Command14_DblClick(Cancel As Integer)
Me.OrderBy = "[property address (1)] ASC,[property no] ASC"
Where ([Property No] = 28)
Me.OrderByOn = True
End Sub
The code works without the Where line.
Basically I want to sort the property by address, but only when the property number is 28
Can someone point me in the right direction and is there something else I should have in my code should
there be no records?
Many thanks Mark
Private Sub Command14_DblClick(Cancel As Integer)
Me.OrderBy = "[property address (1)] ASC,[property no] ASC"
Where ([Property No] = 28)
Me.OrderByOn = True
End Sub
The code works without the Where line.
Basically I want to sort the property by address, but only when the property number is 28
Can someone point me in the right direction and is there something else I should have in my code should
there be no records?
Many thanks Mark