473,326 Members | 2,133 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Populate an MS Access List box manually from a VB String value

1
How do I do this? I simply want to write a line of VB code to add a visual basic string value to a list box at run time. I also want to be able to clear this list box of all its items using a vb code statement
Jun 7 '11 #1
1 2307
NeoPa
32,556 Expert Mod 16PB
The first thing you need to deal with is setting up the ListBox in the first place to allow values. See the Help section for Row Source Type for this.

Next you set up the string in your code for the Row Source. The help section on this also gives all you need in good detail.

As this answers both of your questions we'll leave them as is. Normally we don't allow multiple questions in the same thread. You may want to read the thread on how to ask questions (How to ask "good" questions -- READ BEFORE SUBMITTING A QUESTION!) as it may help future questions to be answered more quickly.
Jun 7 '11 #2

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

Similar topics

7
by: Woodster | last post by:
Further to a question I posted here recently about coding an xml rpeort parser, I need to use a list of name/value pairs, in this case, a list property names and values for a given tag. Rather...
5
by: chrisse_2 | last post by:
Hi, I need some help. I have created a form where there are 3 combo boxes and a text box to search through records. Based on what the user fills in, you then it a "go" button to run the query...
1
by: Johhn | last post by:
I am using VS 2005 and MS ACCESS database, i need to populate dropdown list box eith Items from row 1 to n and from x to y Any code samples? I am usig VB language. Thanks. Who gives me a...
6
by: buzzweetman | last post by:
Many times I have a Dictionary<string, SomeTypeand need to get the list of keys out of it as a List<string>, to pass to a another method that expects a List<string>. I often do the following: ...
1
by: elena | last post by:
Hi, All I have flat text file with fixed record lenght w/o record delimiter, i need read this file and populate Access Database table, how can i achive this? The Record count is 1465321 records: I...
1
by: Matthew Wells | last post by:
This one has bugged me for years. I have a combo box after-update event that sets a one column list box to a string value. (The lsit box is a list of tables). I check the value of the list box...
2
by: phenrol | last post by:
Hello, I am having issues getting my worker thread to function properly. I am working with visual c++ 6 and I am unsure that this is the correct forum to post in but I could not find another that...
2
by: Assimalyst | last post by:
Hi I have a Dictionary<string, List<string>>, which i have successfully filled. My problem is I need to create a filter expression using all possible permutations of its contents. i.e. the...
5
maxamis4
by: maxamis4 | last post by:
Hello, I am currently building a php website. My input form has a list box which I have populated using mysql. What i want to do is populate another list box using the first list box. ...
10
by: jagdeep gupta | last post by:
How to add data from database in drop down list manually? I have added it as: In the database table name tbldate there is field day and I have to add all these dates manually as: dropdownlist1...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.