Hi,
Lets say i have the following table
Name________Sport
=================
Brian Soccer
Karen Golf
Barb Basketball
Terry Soccer
Marie Swimming
Tim Basketball
Jack Swimming
Amy Golf
I am getting this whole table in a recordset and i am trying to display the following result on my page
In my ASP/VBscript got a table and in the first row i want to put the sport and underneath it(in other rows) the people that plays this sport. like such:
Soccer
=======
brian
terry
This display is in a "search_result.asp" My search page is passing the result in a text box "txtSearch" and in the recordset i am writing "where sport LIKE txtSearch%
so if someone wrote the letter S only not soccer i should get the following result
Soccer
=======
brian
terry
Swimming
=======
marie
jack
as both starts with the letter S
But what happens is that i got the first sport (alphabetically) in that case would be Soccer and the names' of people of both groups (soccer and swimming) under the same title which is Soccer
Now the problem is i am making a Repeat region ONLY on the NAME field not on the sport because when i tried to put the repeat region on the whole table it didn't work
And in SQL Server i couldn't group my result the way i want...so is there an easy way i can get both results if someone entered a keyword that have more than one match in my database and display it as i explained above with items/people belong to that category AND repeat the same process for other categories juse like i explained before
so if someone Entered the letter S, i should get the following result in my page
Soccer
=======
brian
terry
Swimming
=======
marie
jack
I am SORRY for explaining in so much details and repeatings but i wanted to make myself clear so that the thread doesn't get longer later.
Thank you and any help would be appreciated.
Lets say i have the following table
Name________Sport
=================
Brian Soccer
Karen Golf
Barb Basketball
Terry Soccer
Marie Swimming
Tim Basketball
Jack Swimming
Amy Golf
I am getting this whole table in a recordset and i am trying to display the following result on my page
In my ASP/VBscript got a table and in the first row i want to put the sport and underneath it(in other rows) the people that plays this sport. like such:
Soccer
=======
brian
terry
This display is in a "search_result.asp" My search page is passing the result in a text box "txtSearch" and in the recordset i am writing "where sport LIKE txtSearch%
so if someone wrote the letter S only not soccer i should get the following result
Soccer
=======
brian
terry
Swimming
=======
marie
jack
as both starts with the letter S
But what happens is that i got the first sport (alphabetically) in that case would be Soccer and the names' of people of both groups (soccer and swimming) under the same title which is Soccer
Now the problem is i am making a Repeat region ONLY on the NAME field not on the sport because when i tried to put the repeat region on the whole table it didn't work
And in SQL Server i couldn't group my result the way i want...so is there an easy way i can get both results if someone entered a keyword that have more than one match in my database and display it as i explained above with items/people belong to that category AND repeat the same process for other categories juse like i explained before
so if someone Entered the letter S, i should get the following result in my page
Soccer
=======
brian
terry
Swimming
=======
marie
jack
I am SORRY for explaining in so much details and repeatings but i wanted to make myself clear so that the thread doesn't get longer later.
Thank you and any help would be appreciated.