是Form1中的代码?这样有错,您的代码放哪呢?
Private Sub Command1_Click() For i = 1 To 9 i Next Form2.Show 0 = 1 '这样有错
End Sub
或者
Private Sub Command1_Click() For i = 1 To 9 i = 1'这样有错 Next Form2.Show 0 End Sub
或者
Private Sub Command1_Click() For i = 1 To 9 i Next = 1'这样有错 Form2.Show 0
End Sub