访问webDB表单 - 防止用户直接键入datepicker框 [英] Access webDB form- Prevent user from directly typing into datepicker box

查看:61
本文介绍了访问webDB表单 - 防止用户直接键入datepicker框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好!我有一个包含日期选择器的Access 2010 webDB表单。 (用户选择日期,填写另外两个字段并提交表格)

我希望用户从日历弹出小窗口中选择日期,而不是直接在框中输入。你能帮助我吗?


如果你想我可以上传数据库


谢谢

hello! I have an Access 2010 webDB form that contains a date picker. (Users choose the date, fillup two more fields and submit the form)
I would like the user to choose the date from the calendar popup small window, not typing directly in the box. Can you help me?

if you want i can upload the db

Thank you

推荐答案

我不知道 webDB 表单是什么,但如果要保护用户输入的控件设置为已锁定,那么没有用户输入该控件。您可以编写从日历控件填充它的代码,在更新之前将Locked设置为false,然后在完成后再将其设置回来。这是否有意义?
I don''t know what a webDB form is, but if the control you want to protect from user typing is set to Locked, then there will be no user typing into that control. Your code for populating it from the Calendar control could be written to set Locked to false prior to the update and then set it back again when it''s finished. Does that make sense?


如果我将控件设置为LOCKED,我不能选择类型,但不能从日历中选择。我想知道是否有一种不打字的方式,只需选择。访问web dbs有不到一半的常规功能,启用... :(
if i set the control to "LOCKED", I cant type ofcourse, but neither choosing from the calendar. i wanted to know if there is a way of not typing, just choosing. access web dbs have less than the half regular features, enables... :(


我不知道因为我根本没有任何web dbs的经验,但是将Calendar控件在使用时没有触发AfterUpdate事件。当然,那里的代码可以清除然后设置 Locked 属性吗?我在黑暗中飞行,但我期待如果你看一下可用的东西以及它们如何相互作用,就有办法处理它。
I don''t know as I don''t have any experience with web dbs at all, but would the Calendar control not have an AfterUpdate event triggered when it''s been used. Surely the code in there could clear then set the Locked property? I''m flying in the dark, but I expect there is a way of handling it if you look at what''s available and how they interact.


这篇关于访问webDB表单 - 防止用户直接键入datepicker框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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