本文介绍了设置Combobox.listindex的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我已经阅读了我在互联网上可以找到的所有内容,但它没有帮助!我正在使用Windows XP和Access 2003.以下代码确实按照需要增加了listindex,但是在从Private Sub Combo返回之后,AfterUpdate()将其归零。您需要第一行来停止7777错误。另外,第三行激活Private Sub Combo AfterUpdate(),这也很不错。 1. On Error Resume Next 2. Me.Combo。 Setfocus 3. Me.Combo.Listindex = Me.Combo.Listindex +1 如果您使用F8手动执行代码,代码可以完美运行!然后当你运行代码w / o手动踩它时它不起作用。相反,它首先递增组合框,运行thu AfterUpdate()然后将其设置为零。我把这个.mdb变成了一个.mde,只是为了看看是否会让问题摆脱,但事实并非如此。请帮忙!!!谢谢,Ken。I have read everything I can find on the internet, BUT it doesn''t help! I''m using Windows XP and Access 2003. The following code does increment the listindex as wanted but then after coming back from Private Sub Combo AfterUpdate() zeros it out. You need line one to stop the 7777 error. In addition, line three fires the Private Sub Combo AfterUpdate() which is nice too.1. On Error Resume Next2. Me.Combo.Setfocus3. Me.Combo.Listindex = Me.Combo.Listindex +1If you step thu the code manually with F8, the code works perfectly! Then when you run the code w/o stepping thu it manually it doesnt work. Instead it first increments the combo box, runs thu AfterUpdate() and then sets it to zero. I turned this .mdb into a .mde, just to see if that would shake the problem away, but it doesn''t. Please help!!! Thank, Ken.推荐答案 展开 | 选择 | Wrap | 行号 展开 | 选择 | Wrap | 行号 这篇关于设置Combobox.listindex的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 09-11 00:21