473,667 Members | 2,577 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Listbox additem Fehler

Hallo,

kann mir vielleicht jemand erklären, wieso ich neue Einträge in eine
Listbox nicht per MeineListbox.ad ditem 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 5037
What version of Access are you using?

<mi******@gmx.d e> wrote in message
news:77******** *************** ***@posting.goo gle.com...
Hallo,

kann mir vielleicht jemand erklären, wieso ich neue Einträge in eine
Listbox nicht per MeineListbox.ad ditem 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********@nos pam.com> wrote in message news:<OR******* ********@newsre ad3.news.atl.ea rthlink.net>...
I'm using Microsoft Access 2000
What version of Access are you using?

<mi******@gmx.d e> wrote in message
news:77******** *************** ***@posting.goo gle.com...
Hallo,

kann mir vielleicht jemand erklären, wieso ich neue Einträge in eine
Listbox nicht per MeineListbox.ad ditem 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.Rowsour ce="A;B;C"
will produce a combobox with these items.

HTH
- Turtle

<mi******@gmx.d e> wrote in message
news:77******** *************** ***@posting.goo gle.com...
"MacDermott " <ma********@nos pam.com> wrote in message news:<OR******* ********@newsre ad3.news.atl.ea rthlink.net>... I'm using Microsoft Access 2000
What version of Access are you using?

<mi******@gmx.d e> wrote in message
news:77******** *************** ***@posting.goo gle.com...
Hallo,

kann mir vielleicht jemand erklären, wieso ich neue Einträge in eine
Listbox nicht per MeineListbox.ad ditem 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
7861
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 allso subclassed the window and do see all kinds of WS_??? messages coming by. But now I'm stuck :-\ I've got *no* idea what to do next, and all my searching on the web leads me
4
8486
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
8423
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: ListBox1.AddItem('a') ListBox1.AddItem('b') ListBox1.AddItem('c') ListBox1.AddItem('d')
6
1621
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 Sub LoadListBox1() On Error Resume Next ' Turn OFF ListBox Painting during update LBPaint False
1
4813
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 Access, which isn't very helpful as it doesn't let me debug or pinpoint what's going wrong. I -think- it's at this line For Each VarItem in Me.lstOffices strOffices = strOffices & ",'" & Me.lstOffices.ItemData(varItem) & "'" Next varItem...
3
2660
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 contents in a report which has the same fields as the form. All fields derived from report query are OK A listbox with design mode rowsource setting, works fine BUT...
1
1149
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. could any body help me out. Sub ListBox1_Click() With SampleDialogBox.ListBox1 .RowSource = "" .AddItem "C" .AddItem "F" .AddItem "R" End With
1
4021
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 are not bound, I select from the bottom set and add to the top set which works fine, but now i decide to remove an item from the top set. when i tried to use a remove item code it worked fine, it did delete the item form the list but it added...
2
3092
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 know how. Here's what' I've started with: With lbDay1 .AddItem "01" .AddItem "02" .AddItem "03" .AddItem "04" .AddItem "05"
0
8457
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8788
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8563
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7390
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6203
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4200
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2776
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2013
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.