I want to make sure I am "nesting" IF statements correctly before I get too crazy with this
I am unsure if that last one needs to be an ElseIf, or just a plain if to handle the response of the msgbox. I think it just needs to be a plain IF statement. Could someone assist?
Code:
If Me.QuoteComplete = True Then
Call LockForm
Me.LockQuoteBtn.Caption = "Unlock Quote"
ElseIf Me.QuoteComplete = False Then
Msg = "Is the quote done/complete?"
Style = vbYesNo + vbCritical + vbDefaultButton2
Title = "Lock Quote"
Response = MsgBox(Msg, Style, Title)
'user confirmed quote is complete and lock, else exit sub
ElseIf Response = vbYes Then
I am unsure if that last one needs to be an ElseIf, or just a plain if to handle the response of the msgbox. I think it just needs to be a plain IF statement. Could someone assist?