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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access 2002 ListIndex Error 7777

Status
Not open for further replies.

jabrony76

Technical User
Apr 23, 2001
125
US
HI all,
Have a mde that works fine in Access 2000 but one user now has Access 2002 and a commandbutton is throwing the run-time error '7777' you've used the ListIndex property incorrectly. When I debug here is the code that it doesn't like:

Private Sub Command36_Click()
Combo27.SetFocus
Controls("combo27").ListIndex = Combo27.ListIndex + 1
End Sub


The code is meant to bump up a subform one record (there's a -1 that bumps down that is erroring too).

Thanks,
Andy
 
Having the same problem with access 2002. It appears to be that the combobox has to have the focus during the listindex call, but i haven't been able to figure it out either. Let me know if you have any luck.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top