简单??从文本框中分配公共变量。 [英] Easy?? Assigning a public variable from a textbox.

查看:91
本文介绍了简单??从文本框中分配公共变量。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,(好像我现在在这里发布了很多)


我还有另一个问题......


我有一个addstaff表单,我想从该表单中捕获ID(在它关闭之前)并在新打开的表单上使用它,


i认为它很容易

公共StaffID(模块中)


StaffID = [表格]![frmAddStaff]![StaffID](关于表格的点击事件)


我希望下一个表格上的员工ID在关闭时打开,并填写新表格的详细信息...


请帮帮我...再次..


谢谢!!

Hello again, (seems i''m posting here alot right now)

I have another problem....

I have an "addstaff" form, and i want to capture the ID from that form (before it closes) and use it on a newly opened form,

i thought it would be easy

public StaffID (in module)

StaffID = [Forms]![frmAddStaff]![StaffID] (on click event of the form)

I want the staff ID on the next form that opens on close, and fills in details on open of new form...

Please help me... again..

Thanks!!

推荐答案

你从来没有说过问题所在。
You never said what the problem was.

抱歉它说我无法将对象分配给变量(足够近)
sorry it says i cant assign the object to the variable (near enough)


尝试Dim StaffID为在此输入数据类型
Try Dim StaffID As Enter Data Type Here


这篇关于简单??从文本框中分配公共变量。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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