VB编程提示Private Sub Command1_Click()编译错误,过程声明与同名事件或过程的描述不匹配

2024-11-15 18:04:30
推荐回答(1个)
回答1:

1、Passwordstr = Text1.Text 修改为 Passwordstr = Me.Text1

2、这两行:
Load Form2
Form2.Show 、
修改为:Docmd.openform Form2
3、Result = MsgBox("Password Denied,Please imput again.", "Visual Basic OK Only", "Error!")修改为

MsgBox"Password Denied,Please imput again."

4、 Text1.Text = "" 修改为 Me.Text1 = “”
修改了以上内容之后,你再试试!~