Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sort joined tables

Status
Not open for further replies.

anniez

IS-IT--Management
Apr 13, 2001
43
US
My record ID is a number. In a query, it sorts fine (1,2,3,4,5...) until I add another table to the query. Then it sorts as though it's a character (1,10,11,,,2,20,21...) I need the data from both tables and I need it in record ID order. Help...
 
I can't emulate the problem.......

Are you sure that you are sorting on the ID from the base table not the added table???
 
Yes, I'm sure.
Table A: ID(N), empid(C), fieldx
Table B: empid(C), name, fieldz
A query of tableA can be sorted ok - number order.
When I relate the other table on empid, it sorts as though the field is characters.
 
I've used a number of different table combinations from my own systems and cannot get the problem to appear...

sorry I can't help!!!
 
My tables are in Oracle - linked in access. That's what's causing it, right? Sorry. Can anyone help with that?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top