dbTalk Databases Forums  

.AddItem to list box not available in 2000?

comp.database.ms-access comp.database.ms-access


Discuss .AddItem to list box not available in 2000? in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
What-a-Tool
 
Posts: n/a

Default .AddItem to list box not available in 2000? - 12-15-2003 , 04:12 PM






Have a list box that I'm trying to populate on an Access 2000 form. Created
in XP version as 2000 format.
When run in computer with Access 2000, I get an error that the .AddItem
method is not supported.

Anybody have a clue what the problem might be?

Thanks in advance.

--

/ Sean the Mc /


"I have not failed. I've just found 10,000 ways that won't work."
- Thomas Alva Edison (1847-1931)



Reply With Quote
  #2  
Old   
MikeB
 
Posts: n/a

Default Re: .AddItem to list box not available in 2000? - 12-15-2003 , 05:20 PM







"What-a-Tool" <Die!FrigginSpammersDieDie!@NoShitSherlock.Net> wrote

Quote:
Have a list box that I'm trying to populate on an Access 2000 form. Created
in XP version as 2000 format.
When run in computer with Access 2000, I get an error that the .AddItem
method is not supported.

Anybody have a clue what the problem might be?
AddItem to ListBox IS NOT available in 2000.

Set the Row Source Type Property to 'Value List'

The following adds items from TextBox Text1 to ListBox List1:

Private Sub Command0_Click()

If List1.RowSource = "" Then
List1.RowSource = Text1.Value
Else
List1.RowSource = List1.RowSource & ";" & Text1.Value
End If
Text1.Value = ""
End Sub


Quote:
Thanks in advance.

--

/ Sean the Mc /


"I have not failed. I've just found 10,000 ways that won't work."
- Thomas Alva Edison (1847-1931)






Reply With Quote
  #3  
Old   
What-a-Tool
 
Posts: n/a

Default Re: .AddItem to list box not available in 2000? - 12-15-2003 , 06:46 PM



Awesome - Just what I wanted to know. _Was thinking I had a bad
installation.
Thanks

--

/ Sean the Mc /


"I have not failed. I've just found 10,000 ways that won't work."
- Thomas Alva Edison (1847-1931)

"MikeB" <m.byerleyATVerizonDottieNettie> wrote

Quote:
"What-a-Tool" <Die!FrigginSpammersDieDie!@NoShitSherlock.Net> wrote in
message
news:4lqDb.8334$WQ3.2156 (AT) lakeread05 (DOT) ..
Have a list box that I'm trying to populate on an Access 2000 form.
Created
in XP version as 2000 format.
When run in computer with Access 2000, I get an error that the .AddItem
method is not supported.

Anybody have a clue what the problem might be?

AddItem to ListBox IS NOT available in 2000.

Set the Row Source Type Property to 'Value List'

The following adds items from TextBox Text1 to ListBox List1:

Private Sub Command0_Click()

If List1.RowSource = "" Then
List1.RowSource = Text1.Value
Else
List1.RowSource = List1.RowSource & ";" & Text1.Value
End If
Text1.Value = ""
End Sub


Thanks in advance.

--

/ Sean the Mc /


"I have not failed. I've just found 10,000 ways that won't work."
- Thomas Alva Edison (1847-1931)








Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.