473,324 Members | 2,501 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,324 software developers and data experts.

Listbox additem Fehler

Hallo,

kann mir vielleicht jemand erklären, wieso ich neue Einträge in eine
Listbox nicht per MeineListbox.additem hinzufügen kann?? Ich bekomme
da immer wieder einen Laufzeitfehler. In Beispielen, die ich im Netz
gefunden habe, benutzen alle diese Methode, aber bei mir funktioniert
es ganz einfach nicht, oder liegt das vielleicht daraun, dass Ich
Bibliotheken, die dafür benötigt werden nicht eingebunden habe?
Vielleicht kann mir hier jemand sagen, wie genau ich Einträge in die
Liste schreiben kann. Ich will dabei keine Tabelle oder Abfrage
benutzen, sondern selbst Einträge in die Liste vornehmen. Die Liste
hat auch nur eine Spalte. :-)

Danke und viele Grüße,
Michael
Nov 13 '05 #1
3 5023
What version of Access are you using?

<mi******@gmx.de> wrote in message
news:77**************************@posting.google.c om...
Hallo,

kann mir vielleicht jemand erklären, wieso ich neue Einträge in eine
Listbox nicht per MeineListbox.additem hinzufügen kann?? Ich bekomme
da immer wieder einen Laufzeitfehler. In Beispielen, die ich im Netz
gefunden habe, benutzen alle diese Methode, aber bei mir funktioniert
es ganz einfach nicht, oder liegt das vielleicht daraun, dass Ich
Bibliotheken, die dafür benötigt werden nicht eingebunden habe?
Vielleicht kann mir hier jemand sagen, wie genau ich Einträge in die
Liste schreiben kann. Ich will dabei keine Tabelle oder Abfrage
benutzen, sondern selbst Einträge in die Liste vornehmen. Die Liste
hat auch nur eine Spalte. :-)

Danke und viele Grüße,
Michael

Nov 13 '05 #2
"MacDermott" <ma********@nospam.com> wrote in message news:<OR***************@newsread3.news.atl.earthli nk.net>...
I'm using Microsoft Access 2000
What version of Access are you using?

<mi******@gmx.de> wrote in message
news:77**************************@posting.google.c om...
Hallo,

kann mir vielleicht jemand erklären, wieso ich neue Einträge in eine
Listbox nicht per MeineListbox.additem hinzufügen kann?? Ich bekomme
da immer wieder einen Laufzeitfehler. In Beispielen, die ich im Netz
gefunden habe, benutzen alle diese Methode, aber bei mir funktioniert
es ganz einfach nicht, oder liegt das vielleicht daraun, dass Ich
Bibliotheken, die dafür benötigt werden nicht eingebunden habe?
Vielleicht kann mir hier jemand sagen, wie genau ich Einträge in die
Liste schreiben kann. Ich will dabei keine Tabelle oder Abfrage
benutzen, sondern selbst Einträge in die Liste vornehmen. Die Liste
hat auch nur eine Spalte. :-)

Danke und viele Grüße,
Michael

Nov 13 '05 #3
Access 2000 does not support AddItem.
This was added with Access 2002.

If you set your combobox's RowSourceType to ValueList, you can create a
string, separating your values with semicolons, and assign that to your
combobox's RowSource.
For example:
MyCombo.Rowsource="A;B;C"
will produce a combobox with these items.

HTH
- Turtle

<mi******@gmx.de> wrote in message
news:77**************************@posting.google.c om...
"MacDermott" <ma********@nospam.com> wrote in message news:<OR***************@newsread3.news.atl.earthli nk.net>... I'm using Microsoft Access 2000
What version of Access are you using?

<mi******@gmx.de> wrote in message
news:77**************************@posting.google.c om...
Hallo,

kann mir vielleicht jemand erklären, wieso ich neue Einträge in eine
Listbox nicht per MeineListbox.additem hinzufügen kann?? Ich bekomme
da immer wieder einen Laufzeitfehler. In Beispielen, die ich im Netz
gefunden habe, benutzen alle diese Methode, aber bei mir funktioniert
es ganz einfach nicht, oder liegt das vielleicht daraun, dass Ich
Bibliotheken, die dafür benötigt werden nicht eingebunden habe?
Vielleicht kann mir hier jemand sagen, wie genau ich Einträge in die
Liste schreiben kann. Ich will dabei keine Tabelle oder Abfrage
benutzen, sondern selbst Einträge in die Liste vornehmen. Die Liste
hat auch nur eine Spalte. :-)

Danke und viele Grüße,
Michael

Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: R.Wieser | last post by:
Hello All, I'm trying to get a "Virtual Listbox" to work. I've currently got a form, and used CreateWindowExA to create a ListBox with the LBS_OWNERDRAWFIXED and LBS_NODATA flags on it. I've...
4
by: John Guarnieri | last post by:
Hi All, I need some code to drag items in a list box either up or down along with not just the text but with the itemdata too. Can anyone hook me up? TIA John
1
by: andrew.panin | last post by:
Hi there! I've got a trouble with these things. What's going on? 1ST STEP: we have ListBox item. Let's call it ListBox1. We're adding four values to it using AddItem method:...
6
by: serviceman via AccessMonster.com | last post by:
Hi again gang... I have downloaded a great little list box select form from Stephen Lebans that i would like to use in my student email project. The "available" object is populated thus: Private...
1
by: Selesti | last post by:
I've created a form dialog box with several checkboxes to determine which offices to include in a sales report. However, I'm getting an "Object doesn't support this property or method" error from MS...
3
by: ML | last post by:
I have used Allen Brown's technique for filling a listbox on a form with the names of files in a certain disc folder. It works well. I am now giving the user the option to print the form...
1
by: joemo2003 | last post by:
I just a VB beginner. I try to creat a custom listbox with a list of temperture units by VBA, but my code didn't do anything when i click the run bottom. The units didn't show up on the listbox....
1
by: Sunray | last post by:
I have a form called the sales form and i have 2 sets of listboxes So what happens is. i add items form the bottom set of list boxes which are bound to a data base to the top set of list boxes which...
2
risk32
by: risk32 | last post by:
Hello. I am having a problem with Excel VB. I'm trying to use the value of items in a listbox to manipulate a caption to a label. Any suggestions? I haven't tried to use index, and frankly I don't...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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...
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.