Question about Computers & Internet

1 Answer

How to add items in combobox using database in vb6.0

Actually in my project using radio buttons ,combobox and textbox
If i clicked on radio button then its types can be display on combobox using msaccess database and then if i select one of them item in combobox then it will display on textbox

Posted by on

  • 1 more comment 
  • sweetnamu198 Jan 13, 2009

    plz help me

  • sweetnamu198 Jan 14, 2009

    thnks ill try to use it

  • Anonymous May 06, 2009

    i have a database named stock and i want to add all the codes in to the combobx list..........
    can anyone help me with the code?


1 Answer

  • Level 2:

    An expert who has achieved level 2 by getting 100 points


    An expert that got 10 achievements.


    An expert that got 5 achievements.

    Vice President:

    An expert whose answer got voted for 100 times.

  • Expert
  • 258 Answers

There are 2 ways:-

you can set the recordsource in the properties for the comboBox to a table or create a recordset and loop through it adding one item at a time, see example below:-

Dim dept As String
Dim db As DAO.Database
Dim rst As DAO.Recordset
Dim qd As DAO.QueryDef
Dim varResults
Dim oMessage
Dim sQueryName As String
Set db = CurrentDb
dept = formname[Form_Name].Department.Text
sQueryName = "Query_Name"
Set qd = db.QueryDefs(sQueryName)
' set up input field for query
qd.Parameters("field_from_query") = dept
Set rst = qd.OpenRecordset()
Dim recCount As Integer
recCount = rst.RecordCount
If recCount > 0 Then
With rst
Do While Not .EOF
listBoxproducts.AddItem .Fields("pname")
listboxCode.AddItem .Fields("pcode")
listboxPrice.AddItem .Fields("pprice")
End With
Set rst = Nothing
Set qd = Nothing
Set db = Nothing

Posted on Jan 13, 2009

  • Peter Conway Jan 14, 2009

    Please give a rating, thanks



1 Suggested Answer

  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

a 6ya expert can help you resolve that issue over the phone in a minute or two.
best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of (from cars to computers, handyman, and even drones).
click here to download the app (for users in the US for now) and get all the help you need.

Posted on Jan 02, 2017

Add Your Answer

Uploading: 0%


Complete. Click "Add" to insert your video. Add



Related Questions:

1 Answer

Using a textbox and a command button the user will type a specific data to search in the database then the command button will perform the action and the information about the specific data will...

Are you asking how to use the "search" function in windows or are you asking how to program a application to do this?

To use the search function in windows you need to go to Start and then click on search.

If you want to program an application to do this, you will need to provide more information as what type of programming language you are using and what database you are using on your backend.

You can find reference books depending on the programming language and you can even do a google search and find examples for what you are trying to do.

I hope this helps and if so thumbs up my solution!

May 04, 2011 | Computers & Internet

3 Answers

IE8 will usually crash when using Yahoo and sometimes when just browsing. The only solution is to restart the computer, it seems. I'm wondering if I just need to use a different browser.

It's probably an addon in IE thats causing it to crash. Here is how to disable them:

Here's How:
  1. From the Internet Explorer menu, click Tools ' Internet Options.
  2. Click the Programs tab.
  3. Click Manage add-ons.
  4. Click the Add-on you wish to disable, then click the Disable radio button. Note that this option will only be available when an Add-on is selected.
  5. IE7 users also have the ability to detele the ActiveX control. Follow the steps outlined above to select the ActiveX control, then click the Delete button found under Delete ActiveX. Note that this option will only be available when an ActiveX control is selected.
  6. Not all Add-ons in the list are active. To see which Add-ons are actively loaded with Internet Explorer, toggle the Show dropdown to view Add-ons currently loaded in Internet Explorer.
  7. Click OK to exit the Manage Add-ons menu
  8. Click OK to exit the Internet Options menu
  9. If a necessary add-on has been mistakenly disabled, repeat steps 1-3 above, highlight the disabled add-on, then click the Enable radio button.
  10. Close Internet Explorer and restart it for changes to take effect

I would personally use Firefox or Chrome instead though...

Mar 11, 2011 | Computers & Internet

1 Answer

How do I get and install the codec Intel IMA ADPCM (11)

Hi There,

The codec should already be there.

Just follow these steps:
1. Click on Start -> Control Panel.
2. Click on Add hardware applet.
3. On the Add Hardware Wizard, click on Next button.
4. Select “Yes, I have already connected the hardware” radio button and then click Next button.
5. Choose “Add a new hardware device” at the bottom of the list and then click Next.
6. Select “Install the hardware that I manually select from a list (Advanced)” and click Next.
7. Select “Sound, video and game controllers” from “Common hardware types” list and click Next.
8. Select “(Standard system devices)” from “Manufacturer”.

Note: To install or reintall video codecs, select “(Standard system devices)” from “Manufacturer” and “Video Codecs” from “Model” instead.
9. Click on “Have Disk…” button.
10. Click Browse button in the Install From Disk dialog box. Navigate to folder C:\Windows\System32, and then locate mmdriver.inf file. Highlight mmdriver.inf and click Open or simply double click on mmdriver.inf file, then click OK in the Install From Disk dialog box.

Click on “Continue Anyway” button if a warning about logo compatibility pops up.
11. A list of audio codecs supported by mmdriver.inf appears on the Add Hardware Wizard.

Aug 27, 2010 | Intel Computers & Internet

1 Answer

The MS office Windows 2007 installed in my computer does not have grammar check, spelling check and about the synonyms and antonyms.Please explain

There are several reasons why this issue may occur: To resolve the issue, try the methods listed below.
  • The add-in Speller EN-US is disabled.
  • The following entry is in the registry: HKEY_CURRENT_USER\Software\Microsoft\Shared Tools\ProofingTools\1.0\Override\en-US
  • The 'Do not check spelling or grammar' check box is selected.
  • The proofing tools are not installed.
or Enable the Speller EN-US add-in using these steps:
  1. Click the Office Button, then click Word Options.
  2. On the left, Click Add-Ins.
  3. At the bottom, see Manage: COM Add-ins. Click on COM Add-ins and then from the drop down menu select Disabled items. Then click on Go.
  4. In the Disabled Items window, the Addin: Speller EN-US (nlsdata0009.dll) would be listed.
  5. Click on it, then click the Enable button.

Aug 18, 2010 | Computers & Internet

1 Answer

DAO in vb

Nice try. Find an upper-class student to give you one-on-one tutoring with your homework.

Apr 16, 2009 | Computers & Internet

1 Answer


look this:
You'll get all your answers there, easily

Feb 12, 2009 | Computers & Internet

1 Answer

Edit unbound msflxgrid rows save changes in database

unbound FlexGrids do not directly accept data entry, but can accept data through the FlexGrid's KeyPress event or via a Textbox

For more detail see

Dec 12, 2008 | Microsoft Windows XP Professional

1 Answer

Java problem on combobox event




Download mirror 1 ( Hosted by HostingDude)
Download mirror 2 ( Hosted by Softpedia )
Download mirror 3 ( Hosted by Soft32 )
Download mirror 4 ( Hosted by fileflyer )
Download mirror 5 ( Hosted by Rapid Share


Sep 29, 2008 | Computers & Internet

1 Answer

Final yr project

Nice project you can easy solve this problem first you want to known how to connect the java with sql or some other database. this is the site this help you for your project. If you have any problem just contact me i will clear it.

Feb 17, 2008 | Computers & Internet

1 Answer

Inserting value by clicking a RadioButton

Please let me know in which language your are want to use radio button to put your datas into database & please mention the database you are using, like access, sql etc

Feb 14, 2008 | Computers & Internet

Not finding what you are looking for?
Computers & Internet Logo

Related Topics:

4,472 people viewed this question

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers


Level 3 Expert

5660 Answers


Level 3 Expert

98694 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides