Nov 5, 2004 #1 tomk01 ISP Oct 18, 2004 69 US Im want to create a table that looks like this Field 1 2 3 4 5 ... I was thinking somthing like this Code: SELECT record count (id) as num into tempint1 from einfo group by id the problem with my statment is it returns this: field 1 1 1 1 1 1
Im want to create a table that looks like this Field 1 2 3 4 5 ... I was thinking somthing like this Code: SELECT record count (id) as num into tempint1 from einfo group by id the problem with my statment is it returns this: field 1 1 1 1 1 1
Nov 5, 2004 #2 bboffin Programmer Nov 26, 2002 553 GB Is there any reason why you can't use an AutoNumber column which will do exactly what you want and requires no coding? Bob Boffin Upvote 0 Downvote
Is there any reason why you can't use an AutoNumber column which will do exactly what you want and requires no coding? Bob Boffin
Nov 5, 2004 Thread starter #3 tomk01 ISP Oct 18, 2004 69 US I have to drop the table and recreate it evrey time my quary runs Upvote 0 Downvote
Nov 5, 2004 #4 JonFer Programmer Nov 7, 2003 868 US You can run an ALTER TABLE query afterwards to add the Autonumber field. John http://www.interautomateconsulting.com Upvote 0 Downvote
You can run an ALTER TABLE query afterwards to add the Autonumber field. John http://www.interautomateconsulting.com
Nov 6, 2004 #5 cmmrfrds Programmer Feb 13, 2000 4,690 US You are close, just join the table back to itself. See this thread. Thread705-947425 Upvote 0 Downvote