Hi All,
I have ap problem related to database and combobox..
i have a combo box which retrives the number of UserID from Database as
1
2
3
4
5
6
7
8
Now what i need to do is , if i select 3 from Combobox, then Userid1 ,Userid2, UserID3,
Should get selected and if 2 then Userid1 and userId2 Sholuld get selected from database...
Its very urgent...plz...help :(
Thanks in advance
Loading

Manikavelu VelayuthamRank #413 · 6K reputationPosted Aug 25, 2010, 3:59 AM EDT
But we can achieve it in two ways.
1. You can connect the ms access database in sql server, and then you can write your stored procedure.
2. If the above is not possible, just use the sql queries in command text and execute it. Hope you know about command text option in .net
Please mark it as accepted answer, if my posts is helpful
Manikavelu VelayuthamRank #413 · 6K reputationPosted Aug 25, 2010, 3:12 AM EDT
javed khan29 reputationPosted Aug 25, 2010, 3:53 AM EDT
but the problem is that i m using ms-acess database.....is it possible to write store procedure for it in ms access..... if yes then how...is there any other method...
Thankyou.
javed khan29 reputationPosted Aug 25, 2010, 4:02 AM EDT
Manikavelu VelayuthamRank #413 · 6K reputationPosted Aug 25, 2010, 4:09 AM EDT
http://www.stardeveloper.com/articles/display.html?article=2001050101&page=1
http://www.java2s.com/Code/VBAPI/System.Data.Odbc/OleDbCommandCommandText.htm
javed khan29 reputationPosted Aug 25, 2010, 4:25 AM EDT