Option Explicit
[COLOR="Navy"]Dim[/COLOR] St1 [COLOR="Navy"]As[/COLOR] [COLOR="Navy"]String,[/COLOR] St2 [COLOR="Navy"]As[/COLOR] [COLOR="Navy"]String[/COLOR]
[COLOR="Navy"]Sub[/COLOR] Lpst(op [COLOR="Navy"]As[/COLOR] String)
[COLOR="Navy"]Dim[/COLOR] Temp [COLOR="Navy"]As[/COLOR] [COLOR="Navy"]String[/COLOR]
[COLOR="Navy"]If[/COLOR] St1 = "" [COLOR="Navy"]Then[/COLOR]
St1 = op
Me.TextBox1.Text = "No Previous"
[COLOR="Navy"]ElseIf[/COLOR] St2 = "" [COLOR="Navy"]Then[/COLOR]
St2 = op
Me.TextBox1.Text = St1
[COLOR="Navy"]Else[/COLOR]
Me.TextBox1.Text = St2
St1 = St2
St2 = op
[COLOR="Navy"]End[/COLOR] If
[COLOR="Navy"]End[/COLOR] [COLOR="Navy"]Sub[/COLOR]
Private [COLOR="Navy"]Sub[/COLOR] OptionButton1_Change()
Call Lpst(OptionButton1.Name)
[COLOR="Navy"]End[/COLOR] [COLOR="Navy"]Sub[/COLOR]
Private [COLOR="Navy"]Sub[/COLOR] OptionButton2_Change()
Call Lpst(OptionButton2.Name)
[COLOR="Navy"]End[/COLOR] [COLOR="Navy"]Sub[/COLOR]
Private [COLOR="Navy"]Sub[/COLOR] OptionButton3_Change()
Call Lpst(OptionButton3.Name)
[COLOR="Navy"]End[/COLOR] [COLOR="Navy"]Sub[/COLOR]
Private [COLOR="Navy"]Sub[/COLOR] OptionButton4_Change()
Call Lpst(OptionButton4.Name)
[COLOR="Navy"]End[/COLOR] [COLOR="Navy"]Sub[/COLOR]