D
DS
I'm trying to sort the following data....
1,2,3,4,5,6,7,8,9,10,11,12,13,14...etc and A1,A2,B1,B2,B3,B4,C1 etc...
This is the code I'm using...
With Me.ListTransfer
.RowSource = "SELECT PCenter.TableID, PCenter.TableName,
PCenter.TInUse, PCenter.Locked, PCenter.Active, PCenter.TTypeID " & _
"FROM PCType RIGHT JOIN PCenter ON PCType.TTNumber =
PCenter.TTypeID " & _
"WHERE (((PCenter.TInUse) = 0) " & _
"And ((PCenter.Locked) = 0) " & _
"And ((PCenter.Active) = -1) " & _
"And ((PCenter.TTypeID) Like 1)) Or (((PCenter.TInUse) = 0) " & _
"And ((PCenter.Locked) = 0) " & _
"And ((PCenter.Active) = -1) " & _
"And ((PCenter.TTypeID) Like 7)) " & _
"ORDER BY Val(PCenter.TTypeID),Val(PCenter.TableName);"
.Requery
It works, well almost...the problem is that the A1 is ending up at the
bottom of the sort. As such.
1
2
3
......
10
11
12
B1
B2
B3
B4
C1
A1
Any suggestions welcomed!
Thanks
DS
1,2,3,4,5,6,7,8,9,10,11,12,13,14...etc and A1,A2,B1,B2,B3,B4,C1 etc...
This is the code I'm using...
With Me.ListTransfer
.RowSource = "SELECT PCenter.TableID, PCenter.TableName,
PCenter.TInUse, PCenter.Locked, PCenter.Active, PCenter.TTypeID " & _
"FROM PCType RIGHT JOIN PCenter ON PCType.TTNumber =
PCenter.TTypeID " & _
"WHERE (((PCenter.TInUse) = 0) " & _
"And ((PCenter.Locked) = 0) " & _
"And ((PCenter.Active) = -1) " & _
"And ((PCenter.TTypeID) Like 1)) Or (((PCenter.TInUse) = 0) " & _
"And ((PCenter.Locked) = 0) " & _
"And ((PCenter.Active) = -1) " & _
"And ((PCenter.TTypeID) Like 7)) " & _
"ORDER BY Val(PCenter.TTypeID),Val(PCenter.TableName);"
.Requery
It works, well almost...the problem is that the A1 is ending up at the
bottom of the sort. As such.
1
2
3
......
10
11
12
B1
B2
B3
B4
C1
A1
Any suggestions welcomed!
Thanks
DS