如果字段不为空,则在按钮上显示* [英] Display an * on a button if the field is not empty

查看:75
本文介绍了如果字段不为空,则在按钮上显示*的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在弹出的表单上有一个按钮,用于在特定记录的字段中显示信息。按钮上的文字标有奖励字样。我希望它也显示一个asterick ...... *奖励....当且仅当字段中有数据时,其他字样不为NULL。在点击按钮之前,有人不会在该字段中有数据。

I have a button on a form that pops up to show info in a field for a specific record. The text on the button is labled "Awards." I want it to also show an asterick... *Awards....if and only if there is data in the field, in others words not NULL. and someone would no that there is data in the field before clicking on the button.

推荐答案


我有一个按钮在弹出的表单上显示特定记录的字段中的信息。按钮上的文字标有奖励字样。我希望它也显示一个asterick ...... *奖励....当且仅当字段中有数据时,其他字样不为NULL。在点击按钮之前,有人会认为该字段中没有数据。
I have a button on a form that pops up to show info in a field for a specific record. The text on the button is labled "Awards." I want it to also show an asterick... *Awards....if and only if there is data in the field, in others words not NULL. and someone would no that there is data in the field before clicking on the button.



您可以尝试:

You could try:

展开 | 选择 | Wrap | 行号



您可以尝试:
You could try:
展开 | 选择 | Wrap | 行号



谢谢,我会试一试..
Thanks, I''ll give that a try..



我使用的按钮是在子窗体上。因此onClick将打开以显示子表单字段中的数据,这是我想要检查的位置。我应该在主窗体'的OnLoad中尝试这段代码吗?

The button I am using is on a subform. So onClick it will open to display the data in the field of the subform, which is where I want to check. Should I try this code in the main form''s OnLoad?


这篇关于如果字段不为空,则在按钮上显示*的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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