Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

listbox AddItem method not found 1

Status
Not open for further replies.

donrh

Technical User
Aug 1, 2001
5
US
Anyone know why Access 2000 cannot find the AdItem method for a list box? It is in help but denies existence when used in code.
 
Hi DonRH,

(assuming you are working with a form and placing code in that form, also assuming that you are not getting any properties and methods after typing the name of you listbox)

select the listbox and check the "name" property (rt-click: properties). this will rule out typing errors

if the code is in a module:

add the form name as a prefix to the control name
i.e.
form1.listbox1.additem

Tallman64

p.s.
also try adding

DIM listbox1 as listbox

to your code
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top