无法使用表格中要求的方法 [英] unable to use a method requirein' a form

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

问题描述

尽管我提供了表格,但我的代码无法使用.

I can''t get this code of mine to work although I have provided a form.

Private Sub open_form(frm As Form)
    Me.Hide
    Load frm
    frm.Show
End Sub


Private Sub menu_item_Click(Index As Integer)

Select Case Index
Case 0
    open_form (new_emp)
Case 1
    open_form (tree)
Case 2
    open_form (target_display)
Case 3
    End
End Select
End Sub




new_emp,tree,target_display都是形式,但显示类型不匹配错误!




The new_emp, tree, target_display are all forms, yet it shows a type mis-match error!

推荐答案

代码看起来还可以,形式正确吗?
Code looks ok, is the form correct?


这篇关于无法使用表格中要求的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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