I referenced the code tag section - and have not a clue what it means. (I'm rather new to this stuff.) I don't know if this will help you, but here's the section. A macro assigns the caption on the user form and command buttons depending on the action required. The user form tests the names on the command buttons to determine course of action. It gets through the appropriate case function, but before it finishes with end select it jumps to the User_Form Terminate event. Strange, Huh? Thanks for your help.
Select Case cmdAction.Caption
'Check caption on buttons
'Source program is change a record
Case "OK"
Prog = "EditLot"
Range("aw1").Select
Cells.Find(What:=editname, After:=ActiveCell, LookIn:=xlValues, LookAt:= _
xlPart, SearchOrder:=xlByColumns, SearchDirection:=xlNext, MatchCase:= _
False).Activate
dbrow = ActiveCell.Row
Unload Me
'
'Source program is delete a record
Case "Delete"
editname = txtNhood & txtPhase & txtLot & txtBlock
Prog = "DeleteLot"
Range("aw1").Select
Cells.Find(What:=editname, After:=ActiveCell, LookIn:=xlValues, LookAt:= _
xlPart, SearchOrder:=xlByColumns, SearchDirection:=xlNext, MatchCase:= _
False).Activate
dbrow = ActiveCell.Row
Unload Me
'
'Source program is display record
Case "Display"
editname = txtNhood & txtPhase & txtLot & txtBlock
Prog = "Showlot"
Range("aw1").Select
Cells.Find(What:=editname, After:=ActiveCell, LookIn:=xlValues, LookAt:= _
xlPart, SearchOrder:=xlByColumns, SearchDirection:=xlNext, MatchCase:= _
False).Activate
dbrow = ActiveCell.Row
Unload Me
End Select
Errorhandler:
erchg editname, Prog
Unload Me
End Sub
Private Sub cmdCancel_Click()
Unload Me
progend
End Sub
Private Sub UserForm_Terminate()
Set textBoxes = Nothing
' progend
End Sub