自发电号码 [英] self generating number
本文介绍了自发电号码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用以下代码在表单中输入数据时在表单上的文本框中生成一个数字:
i am using the following code to generate a number in a text box on a form when data is entered into the form:
展开 | 选择 | 换行 | 行号
推荐答案
您可以使用DMax函数的标准来查找当前年份的最大票号。
You can use the DMax function''s criteria to look for the maximum ticket number for the current year.
展开 | 选择 | Wrap | 行号
ok very newb问题在这里...但是我会在哪里放置代码...并且我必须消除表格中年份字段中的默认值吗?
ok very newb question here...but where would i place that code... and do i have to eliminate the default value in my year field on the table?
@didacticone
我只是把它放在我工作的头顶上,但实际上它实际上可以起作用:
@didacticone
I just threw this together off the top-of-my-head in work, but it may actually, in fact, work:
- 创建一个名为tblYear的表。
- 此表将仅包含1个字段,名为[Year] - {LONG}。
- 将此表隐藏,因此它不是普通用户可以看到。
- 在适当的地方执行以下代码。
- Create a Table named tblYear.
- This Table will consist of 1 Field only, named [Year] - {LONG}.
- Make this Table Hidden, so that it is not Visible to the average User.
- Execute the following code wherever appropriate.
展开 | 选择 | Wrap | 行号
这篇关于自发电号码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文