Carey
|
| Posted: 06/22/2002, 3:15 AM |
|
I'm certainly hoping someone can help me with this...I've got a list of people listed alphabetically...it's for a phone list. I need to insert the initial of the alphabet at each alphabet change, above that person's name. I'm using ASP...anyone know how to do this? I'm extracting the initial using the left function...but I cannot get it to work in conjunction with the rest of the loop.
Thanks in advance!!
|
|
|
 |
Nicole
|
| Posted: 06/24/2002, 6:47 AM |
|
Carey,
please refer to the GotoCode article: http://www.gotocode.com/art.asp?art_id=103&
In your case the approach is the same. You should catch the first letter of field value from the current record, store it and in next loop step compare it to new one. Once the stored and compared values are different it means that you should put additional row to the table and print starting letter of current record.
|
|
|
 |
|