文本框的自动值 [英] Auto Values for Text Boxes

查看:75
本文介绍了文本框的自动值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿所有,


我正在使用Access 2002.我正在研究一个继承的访问文件,我正在试图找出文本框的方式工作以尝试修复发生的错误。


情况如下:

用户可以访问允许他们提交记录的表单。单击保存按钮时,将根据放在此表单上文本框中的信息创建记录。单击新建记录按钮时,记录将设置为空白。


目前,当单击文本框时,它会显示最后一个条目中的数据。因此,如果John在名称文本框中输入了他的名字,当创建下一个条目时,单击名称文本框将显示John。


文本框下面没有任何内容默认值,所以我甚至都不知道为什么会发生这种情况。


偶尔在使用该程序时,用户将停止自动调出最后一个条目的文本框,导致手工工作增加。 (这是程序的功能,具有相同名称的人在新的接管之前进行多次输入,因此必须输入新名称。)


有谁知道为什么这是出现?或者为什么文本框会显示最后的条目数据?


提前致谢,

James


我在On Click中找到了此代码。命令:

Hey all,

I''m working with Access 2002. I''m working on an inherited access file and I''m trying to figure out how the text boxes work in order to try and fix a bug which occurs.

The situation is as follows:
Users have access to a Form which allows them to submit records. The records are created from the information put into the text boxes on this form when a Save button is clicked. When the New Record button is clicked the records are set to blank.

Currently, when one clicks on a text box it comes up with the data from the last entry. So if John put into the Name Text Box his name, when the next entry is created, click on the Name Text Box will bring up John.

The text box has nothing under it''s default value, so I don''t even know why this is happeneing.

Occasionally while working with the program users will have the text boxes cease to automatically call up the last entry, causing an increase in manual work. (It is the function of the program that someone with the same Name make several entries before someone new takes over and thus a new Name must be entered).

Does anyone know why this is occuring? Or why the text boxes are bringing up the last entries data?

Thanks in advance,
James

I found this code in the "On Click" command:

展开 | 选择 | Wrap | 行号

推荐答案

最有可能是VBA代码。检查文本框的事件属性和代码的可视化基本编辑器。
There''s most likely VBA code. Check the event properties of the text boxes and the visual basic editor for code.


请参阅上一篇文章末尾的编辑。我不知道代码的含义。
See edit at end of last post. I don''t know what the code means.


当他们点击文本框时发送Control + Shift +''


我正在测试它似乎在它之前插入记录的值。
That sends Control+Shift+'' when they click the textbox.

I was testing it and it seems to insert the value of the record before it.


这篇关于文本框的自动值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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