Mrjefferson75
01-26-2008, 09:24 PM
hi guys im trying to go from form 6 back to form 2
this is the code that runs in form 6
Private Sub Command1_Click()
If Form2.MSComm.PortOpen = True Then
Form2.MSComm.PortOpen = False
End If
If Len(Text1.Text) = 16 Then
Call PassUnlock
Else
MsgBox "Incorrect Password Size! Try again!", vbCritical
Exit Sub
End If
Form2.Enabled = True
Form6.Visible = False
End Sub
now before end sub i would think i would put
form2.show
call clean_click()
and that should bring me back to form 2 and proceed to the clean option but dosent. i get an error compile error sub or function not defined..
this is the code that runs in form 6
Private Sub Command1_Click()
If Form2.MSComm.PortOpen = True Then
Form2.MSComm.PortOpen = False
End If
If Len(Text1.Text) = 16 Then
Call PassUnlock
Else
MsgBox "Incorrect Password Size! Try again!", vbCritical
Exit Sub
End If
Form2.Enabled = True
Form6.Visible = False
End Sub
now before end sub i would think i would put
form2.show
call clean_click()
and that should bring me back to form 2 and proceed to the clean option but dosent. i get an error compile error sub or function not defined..