的InputBox [英] InputBox

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

问题描述




Access(v 2003)无法识别函数InputBox


这是我的代码


私有子Command0_Click()

昏暗的响应为字符串

response = inputbox("输入你的名字",登录)

结束子


我收到此错误

预期变量或程序,没有项目


有什么想法吗?

Hi,

Access (v 2003) is not recognizing the function InputBox

this is my code

Private Sub Command0_Click()
Dim response As String
response = inputbox("Enter your name", "Login")
End Sub

I get this error
expected variable or procedure, no project

Any ideas?

推荐答案





Access(v 2003 )没有识别函数InputBox


这是我的代码


Private Sub Command0_Click()

昏暗的响应作为字符串

response = inputbox("输入你的名字",登录)

结束子


我得到这个错误

预期的变量或程序,没有项目


有什么想法吗?
Hi,

Access (v 2003) is not recognizing the function InputBox

this is my code

Private Sub Command0_Click()
Dim response As String
response = inputbox("Enter your name", "Login")
End Sub

I get this error
expected variable or procedure, no project

Any ideas?



我的想法(这里不是专家)是你缺少显示输入框的实际命令。


您已将响应设置为字符串,并定义响应。


但实际使用的是什么响应


也许类似......

My idea (not close to an expert here) is that you are missing the actual command to display the input box.

You have Response set up as a string, and you define response.

But what is actually using "Response"

Perhaps something like...

展开 | 选择 | Wrap | 行号



我的想法(不接近这里的专家)是你缺少显示输入框的实际命令。


您已将响应设置为字符串,并定义响应。


但实际使用的是什么响应


也许类似......
My idea (not close to an expert here) is that you are missing the actual command to display the input box.

You have Response set up as a string, and you define response.

But what is actually using "Response"

Perhaps something like...
展开 | 选择 | Wrap | 行号



感谢您的回复。根据访问帮助文件我的代码应该工作。

我尝试了你的代码,但收到了相同的错误信息
Thanks for your response. According to access help files my code should work.
I tried your code but received the same error message



奇怪,我没有错误消息。


嗯...


你在哪里放代码?在表格中,或在哪里?

Odd, I got no error message.

Hmmm...

Where are you putting the code? In a form, or where?


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

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