Below is a sub I wrote to ask for a password if necessary. If ASC=91 it displays MsgBox(OK) but then it goes rite on and displays the input box when it shouldn't. This is driving me nuts. I've tried more ways to block it and the 2 Msgbox's show the values correct, and it still displays it. What is My Problem?
Private Sub Command6_Click()
Dim X As Integer
Dim Msg$
Regg% = 6
If Asc(OwnerName(6)) = 91 Then
CR$ = Chr$(13) + Chr$(10)
Msg$ = "To Continue You Must OK !" + CR$ + " Then Set - Up To" + CR$ + " Configure Your Register Slot"
X = MsgBox(Msg$, 1, "Register 6", HelpFile, Context)
Form2.Hide
Load Form3
Form3.Show
End If
m = MsgBox("Cnf & R=" + Cnf(Regg%).R) 1******
m = MsgBox(" OwnName= " + OwnerName(6)) 2******
If OwnerName(6) = "[" Then GoTo LineA
If Asc(OwnerName(6)) <> 91 And Cnf(Regg%).R <> "NONENONE" Or Cnf(Regg%).S <> "NONENONE" Or Cnf(Regg%).R <> "" Or Cnf(Regg%).S <> "" Then
Q$ = InputBox$("Enter Password Now !!", " PASSWORD FOR REGISTER No: " + Str$(Regg%))
If Q$ = "|" Then
ShowPassword
End If
If Q$ = Cnf(Regg%).R Or Q$ = Cnf(Regg%).S Then
Form2.Hide
Load Form3
Form3.Show
Else
If Q$ <> "|" Then
X = MsgBox("InValid Password")
End If
End If
End If
If Cnf(Regg%).R = "NONENONE" Or Cnf(Regg%).S = "NONENONE" Then
Form2.Hide
Load Form3
Form3.Show
End If
LineA:
End Sub
It took me 74 years to get this stupid!