如何检查我突出显示的字段是否已被选中! [英] How can I check if my highlighted field is selected !

查看:59
本文介绍了如何检查我突出显示的字段是否已被选中!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,


我是VB& Access的新手并继承了一个项目。我有一个带有多个按钮的表单,如果单击一个,则突出显示按钮下的几个字段。根据我点击的按钮选择/突出显示不同的字段。如果一个字段为空,我已设法编写VB代码抛出并出错,但这对我没有多大帮助,因为在不同的按钮上单击该字段可能不需要填写。

我想知道我如何检查字段是否突出显示,如果是,那么AND我的If NotNull代码就足够了。


目前这是我唯一的代码:

展开 | 选择 | 换行 | 行号

解决方案

如果您发布用于突出显示某些控件的代码(不是字段BTW),那么我们可以帮助您更轻松地检测已应用的更改。

Hello Neo,


我不知道这段代码在哪里:

展开 | 选择 | Wrap | 行号


我也不能(这是值得关注的事情)。为了确认您确实发布了正确的模块,您可以发布命令按钮控件的名称,该控件被单击以突出显示图片中黄色的控件,以及至少一个控件名称(可能是TextBoxes)如此突出。


Hello,

I am new to VB&Access and inherited a project. I have a form with multiple buttons and if one is clicked then a few fields under the buttons are highlighted. Different fields are selected/highlighted depending on what button I click. I have managed to write VB code to throw up and error if a field is null, but that doesn''t help me much because on a different button click that field might not need to be filled in.

I am wondering how I can do a check if the field is highlighted, if so then that AND my If NotNull code will be sufficient.

Currently this is the only code I have:

Expand|Select|Wrap|Line Numbers

解决方案

If you post the code used to highlight some of the controls (not fields BTW) then we can help you detect the changes that have been applied more easily.


Hello Neo,

I''m not sure where in this code it is:

Expand|Select|Wrap|Line Numbers


Nor can I (and that''s something to be concerned about). To confirm you actually have the correct module posted can you post the name of the Command Button control which was clicked to highlight those controls that are yellow in the picture, as well as at least one of the names of the controls (probably TextBoxes) that have been so highlighted.


这篇关于如何检查我突出显示的字段是否已被选中!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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