列表框问题 [英] ListBox Problem

查看:63
本文介绍了列表框问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有类似的问题,我一直在遵循建议但无济于事。我是VBA的新手,所以非常感谢帮助。这是我的第一篇文章,所以如果它在错误的地方或格式我道歉。


在我的查询中我有:

展开 | 选择 | Wrap | 行号

解决方案

我的第一步是在第17行(debug或MsgBox)之前停止代码,并在尝试之前查看strWhere中的内容使用它。


@ChipR


抱歉听起来像是一个诺布,但你怎么做的? (我正在使用Microsoft Visual Basic。)


你可以只是MsgBox变量的内容,看看哪个部分格式错误。

展开 | 选择 | Wrap | 行号

I have a similar problem and I have been following the advice but to no avail. I am a novice with VBA so help would be greatly appreciated. This is my first post so I apologise if it is in the wrong place or format.

In my query I have:

Expand|Select|Wrap|Line Numbers

解决方案

My first step would be to stop the code before line 17 (debug or MsgBox) and take a look at what is in strWhere just before you try to use it.


@ChipR
sorry to sound like a noob but how do you do that? (I''m using Microsoft Visual Basic.)


You can just MsgBox the contents of the variable and see what part is malformed.

Expand|Select|Wrap|Line Numbers


这篇关于列表框问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆