Click to See Complete Forum and Search --> : VB.NET 2008 EE + MS Access


manil
September 2nd, 2008, 02:59 AM
hey guys!

i'm not really sure where to post this..

i've got this vb.net program that gets all of its data from a database.. but i'm having problem sorting.. how do i do it..??

this is the code in my query:

SELECT *
FROM Student;


i need to sort the surname alphabetically & the given name.. if there are students who has the same surname, the given name should be sorted alphabetically as well...

the output is written in an html file..

sotoasty
September 2nd, 2008, 05:46 AM
SELECT * FROM Student ORDER BY SurName, GivenName;

manil
September 2nd, 2008, 10:23 PM
i was able to get it sorted.. but i'm having problem with my output..

i need to get something like this..

http://img376.imageshack.us/img376/120/68468560io9.jpg

but i always get this..

http://img392.imageshack.us/img392/7696/73395825od2.jpg

sotoasty
September 3rd, 2008, 05:27 AM
You will need to post some of your code. Otherwise, we have no idea what you want or what your problem could be.