![]() |
| ||
| how to retrieve data i'm new programmer. can u help me , how to retrieve data from database(access) and display in combo box. the value in combo box will automatic display into text box example: dtbs=office.mdb table name= item field name=itemID,itemName itemID=M1; itemName=modem itemID=M2; itemName=repeater i want this combo box display all itemID in combo box. if the user choose/click, M1, text box will display 'modem' automatically.... how to do like that???plzz help me..... |
| ||
| Re: how to retrieve data |
| ||
| Re: how to retrieve data Quote:
how to do that??? |
| ||
| Re: how to retrieve data 1. open the recordset only for itemID 2. in a for loop add the items to combobox 3. open another recordset for itemname by passing itemID in where clause at runtime dynamically by selecting the itmes from combobox |
| ||
| Re: how to retrieve data thank you very much for your help |
| ||
| Re: how to retrieve data Quote:
set properties :- combox box : name --> cboItem style --> 2- dropdown list textbox : name --> txtname add this reference in the project --> Microsoft Activex Data Object <version no.> Library.......the version no. depends on the version of ms office u have installed.....take the highest one for better performance.... here we go... Option Explicit please let me know if this works out for you....for any more questions feel free to ask... regards Shouvik |
| ||
| Re: how to retrieve data it seems that u have already benefited.....have u got ur answer... if yes then please mark this thread as SOLVED |
| All times are GMT -4. The time now is 3:42 pm. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC