Nov 28, 2005 #1 acnovice Programmer Jan 27, 2005 100 US Hi, I want to combine two different types of columns into one. QNo is a numerical, QNo Rev is a char type. The columns are like following. QNo. QNo Rev. 1000 1000 A 1000 B After combining, sorting is 1000 1000A 1000B Any help will be appreciated.
Hi, I want to combine two different types of columns into one. QNo is a numerical, QNo Rev is a char type. The columns are like following. QNo. QNo Rev. 1000 1000 A 1000 B After combining, sorting is 1000 1000A 1000B Any help will be appreciated.
Nov 28, 2005 #2 PHV MIS Nov 8, 2002 53,708 FR Expr1: QNo & [QNo Rev] Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886 Upvote 0 Downvote
Expr1: QNo & [QNo Rev] Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
Nov 28, 2005 Thread starter #3 acnovice Programmer Jan 27, 2005 100 US PHV, I appreciate your response but have one more question. When I sorted QNos by DESC after combine, the result is like following. 999 998 998A 1000 100 10 1 I want this order. 1000 1000A 999 998 998A .... 100 10 1 Thank you. Upvote 0 Downvote
PHV, I appreciate your response but have one more question. When I sorted QNos by DESC after combine, the result is like following. 999 998 998A 1000 100 10 1 I want this order. 1000 1000A 999 998 998A .... 100 10 1 Thank you.
Nov 28, 2005 #4 PHV MIS Nov 8, 2002 53,708 FR ORDER BY Val(QNos) DESC, QNos ASC Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886 Upvote 0 Downvote
ORDER BY Val(QNos) DESC, QNos ASC Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
Nov 28, 2005 Thread starter #5 acnovice Programmer Jan 27, 2005 100 US PHV, I tried what you post but it didn't work. It said "type mismatch...". I just put ORDER BY QNos DESC; and it works fine. Thank you for the post. Upvote 0 Downvote
PHV, I tried what you post but it didn't work. It said "type mismatch...". I just put ORDER BY QNos DESC; and it works fine. Thank you for the post.