在表单中显示图像:代码问题 [英] Displaying an Image in a Form: Problem with Code
本文介绍了在表单中显示图像:代码问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
(在Windows XP上使用Access 2003。)
我正在使用http://www.databasedev.co.uk/image-form.html中的以下代码使用我的主窗体中的图像控件显示图像(frmVetted)。此代码用于添加图像。命令按钮:
(Using Access 2003 on Windows XP.)
I''m using the following code from http://www.databasedev.co.uk/image-form.html to display an image using an image control in my main form (frmVetted). This code is for the "Add Image" command button:
展开 | 选择 | Wrap | 行号
推荐答案
你没有告诉我们错误是什么is。
You haven''t told us what the error is.
你还没告诉我们错误是什么。
You haven''t told us what the error is.
对不起,我以为我很清楚,但我错过了这个不可或缺的东西:
编译错误:Sub或Function not not定义。
谢谢。
Sorry, I thought I was clear but I missed this one indispensable thing:
Compile error: Sub or Function not defined.
Thanks.
那意味着它不知道tsGetFileFromUser()的位置。如果它不在非格式代码模块中,并且它不在与调用它相同的表单代码模块中,那么它将无法看到该函数。
Then that means it doesn''t know where tsGetFileFromUser() is located. If it''s not in a non form code module and it''s not in the same form code module as where it''s called from, then it won''t be able to see that function.
这篇关于在表单中显示图像:代码问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文