如何让Access记住数字或字符? [英] How can I get Access to remember a digit or a character?

查看:76
本文介绍了如何让Access记住数字或字符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

各位大家好;


如何在MS访问中编写一个函数来携带数字并在我的表单中使用它。


例如连续表单包含sceneID作为主键和场景表示(参考场景表)


当用户加倍时点击sceneID我想要一个函数来记忆这个ID供以后使用(作为缓冲区)甚至表格将被关闭。


请告诉我。


WASSIM S DACCACHE

解决方案

< blockquote>您可以使用代码模块并在其中放置一个全局变量。

当您双击时,您将变量设置为您想要记忆的变量。

现在你只是当你想要使用记忆的值时引用全局变量。



你可以使用代码模块并放入一个全局变量那里。

当你双击你设置变量等于你想要记忆的那个。

现在你只想在你想要使用记忆的值时引用全局变量。



能否请您提供编写全局函数的语法和方法。


关于这个主题的任何链接都可以帮到我。



感谢您的帮助。


小心;


WASSIM S DACCACHE


1)开放获取

2)转到模块选项卡并单击新建

3)在代码窗口中输入新行类型

< span class =codeLinkonclick =Blur(this,this.parentNode.parentNode,getChildren(this),true);>展开 | 选择 | Wrap | 行号


Hello everybody;

How may I write a function on MS access to carry a digit and use it in my forms.?


For example a continuous form contains sceneID as primary key and scene descreption (refer to scene table)

When user double click on the sceneID I want a function to memories this ID for later use (as buffer) even the form will be closed.


Please advise me.

WASSIM S DACCACHE

解决方案

You could use a code module and put a global variable in there.
When you double click you set the variable equal to what you want memorized.
Now you just reference the global variable when you want to use the value that was memorized.


You could use a code module and put a global variable in there.
When you double click you set the variable equal to what you want memorized.
Now you just reference the global variable when you want to use the value that was memorized.

Could you please provide me the syntax and the method to write a global function.

Any link about this subject might help me.


Appreciate your help.

Take care;


WASSIM S DACCACHE


1) open access
2) goto modules tab and click new
3) In code widow on a new line type

Expand|Select|Wrap|Line Numbers


这篇关于如何让Access记住数字或字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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