Hi all,
I'm trying to, at a button click, show another form with a yes and no button on it. Have the user click one and then the form needs to go away and return focus to the parent.... what is wrong with my code. The form just flashes on and is immediately gone.
Thanks everyone.
PB
Private Sub Command54_Click()
Form_frmReminder.SetFocus
Form_frmReminder.Visible = True
If (Form_frmReminder.myAnswer) Then 'a boolean
Form_frmReminder.Visible = False
doYesterday 'a sub previously written
Else
Form_frmReminder.Visible = False
End If
End Sub
I'm trying to, at a button click, show another form with a yes and no button on it. Have the user click one and then the form needs to go away and return focus to the parent.... what is wrong with my code. The form just flashes on and is immediately gone.
Thanks everyone.
PB
Private Sub Command54_Click()
Form_frmReminder.SetFocus
Form_frmReminder.Visible = True
If (Form_frmReminder.myAnswer) Then 'a boolean
Form_frmReminder.Visible = False
doYesterday 'a sub previously written
Else
Form_frmReminder.Visible = False
End If
End Sub