By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,570 Members | 970 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,570 IT Pros & Developers. It's quick & easy.

change rowset position at runtime

P: 5

Table Structure
company name
Phone No


Company Name Phone No Products
Sri balaji Enterprises 26554432 Advertising Agents
KarthicK Call Taxi 43215434 Call Taxi
Chitra Electricals 65437654 Electricals
Udhayam Call Taxi 24358901 Call Taxi
Annamalaiyar Advertising 67542317 Advertising Agents
Mathi Vehicles 23456789 Automobiles
Chennai Media 45326754 Advertising Agents

Here i am using 2 combo boxes. first box list out all distinct products.(i.e)
First Combo Box loads
Advertising Agents
Call Taxi

if i click the Advertising agents in first combo box the 2nd combox will shows the company names of who are all dealing Advertising.
so the second combo box shows

Sri balaji Enterprises
Annamalaiyar Advertising
Chennai Media.

As the same when i click call taxi
Karthick Call taxi
Udhayam Call taxi

Its working...But my problem is.............

Next time when i click Advertising agents the second combo box have to show
Annamalaiyar Advertising(2nd record have 2 come to first)
Chennai Media.(3rd record have 2 come second)
Sri balaji Enterprises(1st record have 2 go last)

same when i click call taxi
Udhayam Call Taxi(2nd record have 2 come to first)
Karthick Call taxi(1st record have 2 go last)

i dont know how to do...if anybody knows help me to do that...
Thanks in advance.
Mar 2 '07 #1
Share this Question
Share on Google+
1 Reply

P: 62
Can you plz write the query which is filling combo box. I think u can fill combo box with order by clause.
Mar 5 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.