Hello,
I have a simple question to many of you, if you can help that would be great.
in fact, I have a form where the user is aked to enter a number which corresponds to the number of scenario he wants to analyse. then the user presses the ok button, this will open for him a dialogue box in a new form "choixmodal" in which he has to select the mode for the first scenario in a listbox group "cadremode". then the user has to press ok, which will close the form.
the question is, how can i save the value of the listbox "cadremode" before the form "choixmodal" is closed?
thank you in advance.
L.
P.s: the form is closed using a sub
Private Sub CommandeChoixmode_Click()
On Error GoTo Err_CommandeChoixmode_Click
DoCmd.Close
Exit_CommandeChoixmode_Click:
Exit Sub
Err_CommandeChoixmode_Click:
MsgBox Err.Description
Resume Exit_CommandeChoixmode_Click
End Sub
I have a simple question to many of you, if you can help that would be great.
in fact, I have a form where the user is aked to enter a number which corresponds to the number of scenario he wants to analyse. then the user presses the ok button, this will open for him a dialogue box in a new form "choixmodal" in which he has to select the mode for the first scenario in a listbox group "cadremode". then the user has to press ok, which will close the form.
the question is, how can i save the value of the listbox "cadremode" before the form "choixmodal" is closed?
thank you in advance.
L.
P.s: the form is closed using a sub
Private Sub CommandeChoixmode_Click()
On Error GoTo Err_CommandeChoixmode_Click
DoCmd.Close
Exit_CommandeChoixmode_Click:
Exit Sub
Err_CommandeChoixmode_Click:
MsgBox Err.Description
Resume Exit_CommandeChoixmode_Click
End Sub