sir,
yes, i mean the table named tblexam records to be sorted in that order.
i need it because
in the table fields are sno,questionno,subcode,question,option1,option2,op tion3,option4,answer.
I have a form created using wizard from that tblexam.
In the form add,delete,...command buttons are there.
when i add a question related to subcode (say mat) that record has to go to the table after the subcode (mat) last record instead of the last record in the table.so i want to sort every time on basis of subcode the whole table when we add,delete records so that the records will be in ascending order on the basis of subcode.