troubleshooting Question

Strange compile error on ComboBox.AddItem method

Avatar of BigJ
BigJ asked on
Microsoft Access
2 Comments1 Solution579 ViewsLast Modified:
Access97: I created a fresh database with 1 form and no tables. The form has 1 control - an unbound combo box. You cannot get simpler than this.

Now, the form module has 1 line of code:

   Me.ComboBox.Additem "Item1"

When I compile the database I get a compile error saying ".AddItem method or data member not found".

I think this might have something to do with having installed Access 2002 - I'm still running 97. However, from what I understand there should be no problem running both versions...

In case it helps, the References in Access 97 are:

1. Visual Basic for Applications (..\common files\MS shared\VBA\VBA332.dll)
2. MS Access 8.0 Object Library (..\Office\MSACC8.OLB)
3. MS DAO 3.51 Object Library (..\common files\MS shared\DAO\DAO350.dll)

Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros