测试代码
Sub Trade_CommandButton1_Click()
if Trade_TextBox1.Text="" then
Msgbox "请输入品种代码"
Goto Line
end if
if Trade_TextBox2.Text="" then
Msgbox "请输入交易数量"
end if
if Trade_TextBox4.Text="" then
Msgbox "请输入交易价格"
end if
Line:
Application.MsgOut "委托单填写不全"
End Sub
执行后报错1024 说Goto行缺少语句?
请问问题在哪里,VB中没有问题啊