我如何在VB中使用等于或小于等于 [英] How do I use equal to or less then in VB

查看:501
本文介绍了我如何在VB中使用等于或小于等于的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试以下内容,但它会停止完成:

I am trying to the following but it stops priot to completion:

展开 | 选择 | Wrap | 行号

推荐答案

我认为您错误地使用了Case。你可以拥有


Select Case rs!Rank

Is = 6''或6 for text

选择Case Forms!frmOverTime!YearsInRank''或者只是使用如果




案例中的每个条款声明将与您选择的任何内容进行比较。很确定你不能将它们与AND结合起来。
I think you are using the Case incorrectly. You can have

Select Case rs!Rank
Is = 6 ''or "6" for text
Select Case Forms!frmOverTime!YearsInRank ''or just use If
etc.

Each clause in the case statement is going to compare to whatever you Select. Pretty sure you can''t combine them with AND.


它实际上是这样的:


It actually looks like this:


展开 | 选择 | Wrap | 行号


让我再试一次代码标签。

Let me try that again with code tags.

展开 | 选择 | Wrap | 行号


这篇关于我如何在VB中使用等于或小于等于的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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