不遵循字段中的输入掩码时创建自定义消息框。 [英] Creating a custom message box when the input mask in a field is not followed.

查看:101
本文介绍了不遵循字段中的输入掩码时创建自定义消息框。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将Access数据库作为学校项目。数据库的表单包含需要填写的字段。表单当前是设置的,其中所需的某些字段具有自定义消息框(如果省略它们)。

我遇到的一个问题是当我指定的输入掩码时创建一个自定义消息框没有电话号码。

''! \(999")" 000\-0000;; _''我试图在验证规则中插入此掩码,希望创建验证文本的链接,我没有任何运气。

谢谢,

Lou

解决方案

Heya,Lou。欢迎来到TSDN!


我将继续将此线程移至Access论坛,我们的常驻专家将更好地为您提供帮助。



我正在将Access数据库作为学校项目。数据库的表单包含需要填写的字段。表单当前是设置的,其中所需的某些字段具有自定义消息框(如果省略它们)。

我遇到的一个问题是当我指定的输入掩码时创建一个自定义消息框没有电话号码。

''! \(999")" 000\-0000;; _''我试图在验证规则中插入此掩码,希望创建验证文本的链接,我没有任何运气。

谢谢,

Lou



假设电话号码字段是您表单上唯一的字段已定义输入掩码,为此字段上的输入掩码违规创建自定义消息框,将以下代码放在表单'错误()事件中:

展开 | 选择 | Wrap | 行号



假设电话号码字段是表单上唯一一个输入掩码具有的字段已定义,以创建自定义消息框f或者在此字段上输入掩码违规,将以下代码放在表单'错误()事件中:

展开 | 选择 | Wrap | 行号

I am working on a Access data base as a school project. The data base has forms with fields that need to be filled out. The forms currently are set up where certain fields that are required have custom message boxes if they are omitted.
The one problem I am having is to create a custom message box when the input mask that I have specified for phone number is not followed.
''! \ (999")" 000\-0000;;_'' I have tried to insert this mask in the validation rule hoping to create a link to the validation text, I am not having any luck.
Thanks,
Lou

解决方案

Heya, Lou. Welcome to TSDN!

I''m going to go ahead and move this thread to the Access forum, where our resident Experts will be better able to help you.


I am working on a Access data base as a school project. The data base has forms with fields that need to be filled out. The forms currently are set up where certain fields that are required have custom message boxes if they are omitted.
The one problem I am having is to create a custom message box when the input mask that I have specified for phone number is not followed.
''! \ (999")" 000\-0000;;_'' I have tried to insert this mask in the validation rule hoping to create a link to the validation text, I am not having any luck.
Thanks,
Lou

Assuming the Phone Number Field is the only Field on your Form for which an Input Mask has been defined, to create a Custom Message Box for an Input Mask Violation on this Field, place the following code in your Form''s Error() Event:

Expand|Select|Wrap|Line Numbers


Assuming the Phone Number Field is the only Field on your Form for which an Input Mask has been defined, to create a Custom Message Box for an Input Mask Violation on this Field, place the following code in your Form''s Error() Event:

Expand|Select|Wrap|Line Numbers


这篇关于不遵循字段中的输入掩码时创建自定义消息框。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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